]> git.proxmox.com Git - rustc.git/blame - src/test/ui/in-band-lifetimes/E0687.stderr
Update (un)suspicious files
[rustc.git] / src / test / ui / in-band-lifetimes / E0687.stderr
CommitLineData
ff7c6d11 1error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
0731742a 2 --> $DIR/E0687.rs:4:15
ff7c6d11 3 |
532ac7d7 4LL | fn foo(x: fn(&'a u32)) {}
ff7c6d11
XL
5 | ^^ in-band lifetime definition
6
7error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
0731742a 8 --> $DIR/E0687.rs:6:16
ff7c6d11 9 |
532ac7d7 10LL | fn bar(x: &Fn(&'a u32)) {}
ff7c6d11
XL
11 | ^^ in-band lifetime definition
12
13error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
0731742a 14 --> $DIR/E0687.rs:8:15
ff7c6d11 15 |
532ac7d7 16LL | fn baz(x: fn(&'a u32), y: &'a u32) {}
ff7c6d11
XL
17 | ^^ in-band lifetime definition
18
19error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
0731742a 20 --> $DIR/E0687.rs:13:26
ff7c6d11 21 |
532ac7d7 22LL | fn bar(&self, x: fn(&'a u32)) {}
ff7c6d11
XL
23 | ^^ in-band lifetime definition
24
25error: aborting due to 4 previous errors
26
f035d41b 27For more information about this error, try `rustc --explain E0687`.