mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
16 lines
646 B
Plaintext
16 lines
646 B
Plaintext
error[E0477]: the type `&'lt u8` does not fulfill the required lifetime
|
|
--> $DIR/normalization-placeholder-leak.rs:31:40
|
|
|
|
|
LL | fn test_lifetime<'lt, T: Trait>(_: Foo<&'lt u8>) {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
error[E0477]: the type `<T as AnotherTrait>::Ty2<'lt>` does not fulfill the required lifetime
|
|
--> $DIR/normalization-placeholder-leak.rs:36:44
|
|
|
|
|
LL | fn test_alias<'lt, T: AnotherTrait>(_: Foo<T::Ty2::<'lt>>) {}
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0477`.
|