]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/E0687_where.stderr
added function to check if lints belong to an external macro
[rust.git] / src / test / ui / in-band-lifetimes / E0687_where.stderr
1 error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
2   --> $DIR/E0687_where.rs:14:31
3    |
4 LL | fn bar<F>(x: &F) where F: Fn(&'a u32) {} //~ ERROR must be explicitly
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_where.rs:16:21
9    |
10 LL | fn baz(x: &impl Fn(&'a u32)) {} //~ ERROR must be explicitly
11    |                     ^^ in-band lifetime definition
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0687`.