2017-11-17 00:59:45 -06:00
|
|
|
error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/E0687.rs:4:15
|
2017-11-17 00:59:45 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn foo(x: fn(&'a u32)) {}
|
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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/E0687.rs:6:16
|
2017-11-17 00:59:45 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn bar(x: &Fn(&'a u32)) {}
|
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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/E0687.rs:8:15
|
2017-11-17 00:59:45 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn baz(x: fn(&'a u32), y: &'a u32) {}
|
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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/E0687.rs:13:26
|
2017-11-17 00:59:45 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn bar(&self, x: fn(&'a u32)) {}
|
2017-11-17 00:59:45 -06:00
|
|
|
| ^^ in-band lifetime definition
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|