2017-11-17 00:59:45 -06:00
|
|
|
error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
|
|
|
|
--> $DIR/E0687.rs:14:15
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(x: fn(&'a u32)) {} //~ ERROR must be explicitly
|
2017-11-17 00:59:45 -06:00
|
|
|
| ^^ in-band lifetime definition
|
|
|
|
|
|
|
|
error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
|
|
|
|
--> $DIR/E0687.rs:16:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn bar(x: &Fn(&'a u32)) {} //~ ERROR must be explicitly
|
2017-11-17 00:59:45 -06:00
|
|
|
| ^^ in-band lifetime definition
|
|
|
|
|
|
|
|
error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
|
|
|
|
--> $DIR/E0687.rs:18:15
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn baz(x: fn(&'a u32), y: &'a u32) {} //~ ERROR must be explicitly
|
2017-11-17 00:59:45 -06:00
|
|
|
| ^^ in-band lifetime definition
|
|
|
|
|
|
|
|
error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
|
|
|
|
--> $DIR/E0687.rs:23:26
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn bar(&self, x: fn(&'a u32)) {} //~ ERROR must be explicitly
|
2017-11-17 00:59:45 -06:00
|
|
|
| ^^ in-band lifetime definition
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0687`.
|