blob: be8b44b1bde6c922e3c4b5043b29918d6d76104c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
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>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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: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
|
LL | fn test_alias<'lt, T: AnotherTrait>(_: Foo<T::Ty2::<'lt>>) {}
| ^^^^^^^^^^^^^^^^^^
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`
|
note: due to a current limitation of the type system, this implies a `'static` lifetime
--> $DIR/normalization-placeholder-leak.rs:19:5
|
LL | for<'x> T::Ty<'x>: Sized;
| ^^^^^^^^^^^^^^^^^^^^^^^^
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`
|
note: due to a current limitation of the type system, this implies a `'static` lifetime
--> $DIR/normalization-placeholder-leak.rs:19:5
|
LL | for<'x> T::Ty<'x>: Sized;
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0477`.
|