2014-09-09 02:15:30 +02:00
|
|
|
fn f<'r>(p: &'r mut fn(p: &mut ())) {
|
2015-01-12 01:01:44 -05:00
|
|
|
(*p)(()) //~ ERROR mismatched types
|
2016-04-20 14:42:13 -04:00
|
|
|
//~| expected type `&mut ()`
|
|
|
|
//~| found type `()`
|
2016-08-11 21:47:56 -07:00
|
|
|
//~| expected &mut (), found ()
|
2014-09-09 02:15:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|