fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0261]: use of undeclared lifetime name `'a` 2 --> $DIR/bad-item-bound-within-rpitit-2.rs:6:20 3 | 4LL | fn bar<'other: 'a>() -> impl Sized + 'a {} 5 | ^^ undeclared lifetime 6 | 7help: consider introducing lifetime `'a` here 8 | 9LL | fn bar<'a, 'other: 'a>() -> impl Sized + 'a {} 10 | +++ 11help: consider introducing lifetime `'a` here 12 | 13LL | trait Foo<'a> { 14 | ++++ 15 16error[E0261]: use of undeclared lifetime name `'a` 17 --> $DIR/bad-item-bound-within-rpitit-2.rs:6:42 18 | 19LL | fn bar<'other: 'a>() -> impl Sized + 'a {} 20 | ^^ undeclared lifetime 21 | 22help: consider introducing lifetime `'a` here 23 | 24LL | fn bar<'a, 'other: 'a>() -> impl Sized + 'a {} 25 | +++ 26help: consider introducing lifetime `'a` here 27 | 28LL | trait Foo<'a> { 29 | ++++ 30 31error: aborting due to 2 previous errors 32 33For more information about this error, try `rustc --explain E0261`.