mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
14 lines
361 B
Rust
14 lines
361 B
Rust
![]() |
pub trait TraitEngine<'tcx>: 'tcx {}
|
||
|
|
||
|
pub trait TraitEngineExt<'tcx> {
|
||
|
fn register_predicate_obligations(&mut self);
|
||
|
}
|
||
|
|
||
|
impl<T: ?Sized + TraitEngine<'tcx>> TraitEngineExt<'tcx> for T {
|
||
|
//~^ ERROR use of undeclared lifetime name `'tcx`
|
||
|
//~| ERROR use of undeclared lifetime name `'tcx`
|
||
|
fn register_predicate_obligations(&mut self) {}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|