summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17033.rs
blob: 72a8cd9823a4bdc32b1954e8d17e3c481e719633 (plain)
1
2
3
4
5
6
fn f<'r>(p: &'r mut fn(p: &mut ())) {
    (*p)(()) //~  ERROR mismatched types
             //~| expected `&mut ()`, found `()`
}

fn main() {}