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

7 lines
140 B
Rust
Raw Normal View History

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