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