mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
8 lines
213 B
Rust
8 lines
213 B
Rust
fn f<'r>(p: &'r mut fn(p: &mut ())) {
|
|
(*p)(()) //~ ERROR mismatched types
|
|
//~| NOTE expected `&mut ()`, found `()`
|
|
//~| NOTE arguments to this function are incorrect
|
|
}
|
|
|
|
fn main() {}
|