blob: b8eec3b6b250525d86deb390b57aaaa7456db474 (
plain)
1
2
3
4
5
6
7
|
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() {}
|