2025-03-04 18:00:26 +00:00
|
|
|
error[E0477]: the type `&'lt u8` does not fulfill the required lifetime
|
|
|
|
|
--> $DIR/normalization-placeholder-leak.rs:31:5
|
|
|
|
|
|
|
|
|
|
|
LL | fn test_lifetime<'lt, T: Trait>(_: Foo<&'lt u8>) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-06-08 10:43:58 +00:00
|
|
|
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
|
2025-03-04 18:00:26 +00:00
|
|
|
--> $DIR/normalization-placeholder-leak.rs:38:5
|
|
|
|
|
|
|
|
|
|
|
LL | fn test_alias<'lt, T: AnotherTrait>(_: Foo<T::Ty2::<'lt>>) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error[E0477]: the type `<T as AnotherTrait>::Ty2<'lt>` does not fulfill the required lifetime
|
|
|
|
|
--> $DIR/normalization-placeholder-leak.rs:38:44
|
2023-06-08 10:43:58 +00:00
|
|
|
|
|
|
|
|
|
LL | fn test_alias<'lt, T: AnotherTrait>(_: Foo<T::Ty2::<'lt>>) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2025-03-04 18:00:26 +00:00
|
|
|
error: lifetime may not live long enough
|
|
|
|
|
--> $DIR/normalization-placeholder-leak.rs:31:5
|
|
|
|
|
|
|
|
|
|
|
LL | fn test_lifetime<'lt, T: Trait>(_: Foo<&'lt u8>) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
| | |
|
|
|
|
|
| | lifetime `'lt` defined here
|
|
|
|
|
| requires that `'lt` must outlive `'static`
|
|
|
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
|
|
|
|
--> $DIR/normalization-placeholder-leak.rs:38:5
|
|
|
|
|
|
|
|
|
|
|
LL | fn test_alias<'lt, T: AnotherTrait>(_: Foo<T::Ty2::<'lt>>) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
| | |
|
|
|
|
|
| | lifetime `'lt` defined here
|
|
|
|
|
| requires that `'lt` must outlive `'static`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2023-06-08 10:43:58 +00:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0477`.
|