]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/E0687_where.stderr
Do not suggest using a const parameter when there are bounds on an unused type parameter
[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:4:31
3    |
4 LL | fn bar<F>(x: &F) where F: 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_where.rs:6:21
9    |
10 LL | fn baz(x: &impl Fn(&'a u32)) {}
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`.