rust/src/test/ui/issues/issue-17033.rs
2018-12-25 21:08:33 -07:00

9 lines
216 B
Rust

fn f<'r>(p: &'r mut fn(p: &mut ())) {
(*p)(()) //~ ERROR mismatched types
//~| expected type `&mut ()`
//~| found type `()`
//~| expected &mut (), found ()
}
fn main() {}