|
1 | 1 | error[E0308]: mismatched types
|
2 |
| - --> $DIR/substs-ppaux.rs:16:17 |
| 2 | + --> $DIR/substs-ppaux.rs:23:17 |
3 | 3 | |
|
4 |
| -LL | fn bar<'a, T>() where T: 'a {} |
5 |
| - | --------------------------- associated function `bar` defined here |
| 4 | +LL | / fn bar<'a, T>() |
| 5 | +LL | | where |
| 6 | +LL | | T: 'a, |
| 7 | + | |______________- associated function `bar` defined here |
6 | 8 | ...
|
7 |
| -LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>; |
8 |
| - | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item |
9 |
| - | | |
10 |
| - | expected due to this |
| 9 | +LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>; |
| 10 | + | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item |
| 11 | + | | |
| 12 | + | expected due to this |
11 | 13 | |
|
12 | 14 | = note: expected unit type `()`
|
13 |
| - found fn item `fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::bar::<ReStatic, char>}` |
| 15 | + found fn item `fn() {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>}` |
14 | 16 | help: use parentheses to call this associated function
|
15 | 17 | |
|
16 |
| -LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>(); |
17 |
| - | ++ |
| 18 | +LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>(); |
| 19 | + | ++ |
18 | 20 |
|
19 | 21 | error[E0308]: mismatched types
|
20 |
| - --> $DIR/substs-ppaux.rs:25:17 |
| 22 | + --> $DIR/substs-ppaux.rs:31:17 |
21 | 23 | |
|
22 |
| -LL | fn bar<'a, T>() where T: 'a {} |
23 |
| - | --------------------------- associated function `bar` defined here |
| 24 | +LL | / fn bar<'a, T>() |
| 25 | +LL | | where |
| 26 | +LL | | T: 'a, |
| 27 | + | |______________- associated function `bar` defined here |
24 | 28 | ...
|
25 |
| -LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>; |
26 |
| - | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item |
27 |
| - | | |
28 |
| - | expected due to this |
| 29 | +LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>; |
| 30 | + | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item |
| 31 | + | | |
| 32 | + | expected due to this |
29 | 33 | |
|
30 | 34 | = note: expected unit type `()`
|
31 |
| - found fn item `fn() {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>}` |
| 35 | + found fn item `fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>}` |
32 | 36 | help: use parentheses to call this associated function
|
33 | 37 | |
|
34 |
| -LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>(); |
35 |
| - | ++ |
| 38 | +LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>(); |
| 39 | + | ++ |
36 | 40 |
|
37 | 41 | error[E0308]: mismatched types
|
38 |
| - --> $DIR/substs-ppaux.rs:33:17 |
| 42 | + --> $DIR/substs-ppaux.rs:39:17 |
39 | 43 | |
|
40 | 44 | LL | fn baz() {}
|
41 | 45 | | -------- associated function `baz` defined here
|
42 | 46 | ...
|
43 |
| -LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz; |
44 |
| - | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item |
| 47 | +LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz; |
| 48 | + | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item |
45 | 49 | | |
|
46 | 50 | | expected due to this
|
47 | 51 | |
|
48 | 52 | = note: expected unit type `()`
|
49 |
| - found fn item `fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::baz}` |
| 53 | + found fn item `fn() {<i8 as Foo<'static, 'static, u8>>::baz}` |
50 | 54 | help: use parentheses to call this associated function
|
51 | 55 | |
|
52 |
| -LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz(); |
53 |
| - | ++ |
| 56 | +LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz(); |
| 57 | + | ++ |
54 | 58 |
|
55 | 59 | error[E0308]: mismatched types
|
56 |
| - --> $DIR/substs-ppaux.rs:41:17 |
| 60 | + --> $DIR/substs-ppaux.rs:47:17 |
57 | 61 | |
|
58 |
| -LL | fn foo<'z>() where &'z (): Sized { |
59 |
| - | -------------------------------- function `foo` defined here |
| 62 | +LL | / fn foo<'z>() |
| 63 | +LL | | where |
| 64 | +LL | | &'z (): Sized, |
| 65 | + | |__________________- function `foo` defined here |
60 | 66 | ...
|
61 |
| -LL | let x: () = foo::<'static>; |
62 |
| - | -- ^^^^^^^^^^^^^^ expected `()`, found fn item |
63 |
| - | | |
64 |
| - | expected due to this |
| 67 | +LL | let x: () = foo::<'static>; |
| 68 | + | -- ^^^^^^^^^^^^^^ expected `()`, found fn item |
| 69 | + | | |
| 70 | + | expected due to this |
65 | 71 | |
|
66 | 72 | = note: expected unit type `()`
|
67 |
| - found fn item `fn() {foo::<ReStatic>}` |
| 73 | + found fn item `fn() {foo::<'static>}` |
68 | 74 | help: use parentheses to call this function
|
69 | 75 | |
|
70 | 76 | LL | let x: () = foo::<'static>();
|
71 | 77 | | ++
|
72 | 78 |
|
73 | 79 | error[E0277]: the trait bound `str: Foo<'?0, '?1, u8>` is not satisfied
|
74 |
| - --> $DIR/substs-ppaux.rs:49:6 |
| 80 | + --> $DIR/substs-ppaux.rs:55:6 |
75 | 81 | |
|
76 | 82 | LL | <str as Foo<u8>>::bar;
|
77 | 83 | | ^^^ the trait `Sized` is not implemented for `str`, which is required by `str: Foo<'?0, '?1, u8>`
|
78 | 84 | |
|
79 | 85 | note: required for `str` to implement `Foo<'?0, '?1, u8>`
|
80 |
| - --> $DIR/substs-ppaux.rs:11:17 |
| 86 | + --> $DIR/substs-ppaux.rs:15:20 |
81 | 87 | |
|
82 |
| -LL | impl<'a,'b,T,S> Foo<'a, 'b, S> for T {} |
83 |
| - | - ^^^^^^^^^^^^^^ ^ |
84 |
| - | | |
85 |
| - | unsatisfied trait bound introduced here |
| 88 | +LL | impl<'a, 'b, T, S> Foo<'a, 'b, S> for T {} |
| 89 | + | - ^^^^^^^^^^^^^^ ^ |
| 90 | + | | |
| 91 | + | unsatisfied trait bound introduced here |
86 | 92 |
|
87 | 93 | error: aborting due to 5 previous errors
|
88 | 94 |
|
|
0 commit comments