rust/tests/ui/issues/issue-17033.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
144 B
Rust
Raw Normal View History

fn f<'r>(p: &'r mut fn(p: &mut ())) {
2015-01-12 06:01:44 +00:00
(*p)(()) //~ ERROR mismatched types
//~| expected `&mut ()`, found `()`
}
fn main() {}