about summary refs log tree commit diff
path: root/tests/ui/implied-bounds/normalization-placeholder-leak.fail.stderr
blob: 8919919d04e5c6e5f84b173f9bd140ca38864611 (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
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`

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

For more information about this error, try `rustc --explain E0477`.