summary refs log tree commit diff
path: root/src/test/ui/issues/issue-17033.rs
blob: d39b5683fee93c40bced83598d26b4fe2c4f4ea9 (plain)
1
2
3
4
5
6
7
8
fn f<'r>(p: &'r mut fn(p: &mut ())) {
    (*p)(()) //~  ERROR mismatched types
             //~| expected type `&mut ()`
             //~| found type `()`
             //~| expected &mut (), found ()
}

fn main() {}