rust/tests/ui/issues/issue-17033.rs
2023-01-11 09:32:08 +00:00

6 lines
144 B
Rust

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