fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0261]: use of undeclared lifetime name `'tcx` 2 --> $DIR/issue-107988.rs:7:52 3 | 4LL | impl<T: ?Sized + TraitEngine<'tcx>> TraitEngineExt<'tcx> for T { 5 | - ^^^^ undeclared lifetime 6 | | 7 | help: consider introducing lifetime `'tcx` here: `'tcx,` 8 9error[E0261]: use of undeclared lifetime name `'tcx` 10 --> $DIR/issue-107988.rs:7:30 11 | 12LL | impl<T: ?Sized + TraitEngine<'tcx>> TraitEngineExt<'tcx> for T { 13 | ^^^^ undeclared lifetime 14 | 15 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html 16help: consider making the bound lifetime-generic with a new `'tcx` lifetime 17 | 18LL | impl<T: ?Sized + for<'tcx> TraitEngine<'tcx>> TraitEngineExt<'tcx> for T { 19 | +++++++++ 20help: consider introducing lifetime `'tcx` here 21 | 22LL | impl<'tcx, T: ?Sized + TraitEngine<'tcx>> TraitEngineExt<'tcx> for T { 23 | +++++ 24 25error: aborting due to 2 previous errors 26 27For more information about this error, try `rustc --explain E0261`.