rust/src/test/ui/issues/issue-17033.rs

9 lines
216 B
Rust
Raw Normal View History

fn f<'r>(p: &'r mut fn(p: &mut ())) {
2015-01-12 01:01:44 -05:00
(*p)(()) //~ ERROR mismatched types
//~| expected type `&mut ()`
//~| found type `()`
2016-08-11 21:47:56 -07:00
//~| expected &mut (), found ()
}
fn main() {}