]> git.lizzy.rs Git - rust.git/blob - src/test/ui/where-clauses/where-lifetime-resolution.stderr
Do not suggest using a const parameter when there are bounds on an unused type parameter
[rust.git] / src / test / ui / where-clauses / where-lifetime-resolution.stderr
1 error[E0261]: use of undeclared lifetime name `'a`
2   --> $DIR/where-lifetime-resolution.rs:6:38
3    |
4 LL | fn f() where
5    |     - help: consider introducing lifetime `'a` here: `<'a>`
6 LL |     for<'a> dyn Trait1<'a>: Trait1<'a>, // OK
7 LL |     (dyn for<'a> Trait1<'a>): Trait1<'a>,
8    |                                      ^^ undeclared lifetime
9    |
10    = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
11
12 error[E0261]: use of undeclared lifetime name `'b`
13   --> $DIR/where-lifetime-resolution.rs:8:52
14    |
15 LL | fn f() where
16    |     - help: consider introducing lifetime `'b` here: `<'b>`
17 ...
18 LL |     for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
19    |                                                    ^^ undeclared lifetime
20    |
21    = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0261`.