]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/E0687.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / in-band-lifetimes / E0687.stderr
1 error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
2   --> $DIR/E0687.rs:4:15
3    |
4 LL | fn foo(x: fn(&'a u32)) {}
5    |               ^^ in-band lifetime definition
6
7 error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
8   --> $DIR/E0687.rs:6:16
9    |
10 LL | fn bar(x: &Fn(&'a u32)) {}
11    |                ^^ in-band lifetime definition
12
13 error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
14   --> $DIR/E0687.rs:8:15
15    |
16 LL | fn baz(x: fn(&'a u32), y: &'a u32) {}
17    |               ^^ in-band lifetime definition
18
19 error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
20   --> $DIR/E0687.rs:13:26
21    |
22 LL |     fn bar(&self, x: fn(&'a u32)) {}
23    |                          ^^ in-band lifetime definition
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0687`.