11error[E0308]: mismatched types
2- --> $DIR/substs-ppaux.rs:16 :17
2+ --> $DIR/substs-ppaux.rs:23 :17
33 |
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
68...
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
1113 |
1214 = note: expected unit type `()`
1315 found fn item `fn() {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>}`
1416help: use parentheses to call this associated function
1517 |
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+ | ++
1820
1921error[E0308]: mismatched types
20- --> $DIR/substs-ppaux.rs:25 :17
22+ --> $DIR/substs-ppaux.rs:31 :17
2123 |
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
2428...
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
2933 |
3034 = note: expected unit type `()`
3135 found fn item `fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>}`
3236help: use parentheses to call this associated function
3337 |
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+ | ++
3640
3741error[E0308]: mismatched types
38- --> $DIR/substs-ppaux.rs:33 :17
42+ --> $DIR/substs-ppaux.rs:39 :17
3943 |
4044LL | fn baz() {}
4145 | -------- associated function `baz` defined here
4246...
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
4549 | |
4650 | expected due to this
4751 |
4852 = note: expected unit type `()`
4953 found fn item `fn() {<i8 as Foo<'static, 'static, u8>>::baz}`
5054help: use parentheses to call this associated function
5155 |
52- LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz();
53- | ++
56+ LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz();
57+ | ++
5458
5559error[E0308]: mismatched types
56- --> $DIR/substs-ppaux.rs:41 :17
60+ --> $DIR/substs-ppaux.rs:47 :17
5761 |
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
6066...
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
6571 |
6672 = note: expected unit type `()`
6773 found fn item `fn() {foo::<'static>}`
@@ -71,18 +77,18 @@ LL | let x: () = foo::<'static>();
7177 | ++
7278
7379error[E0277]: the trait bound `str: Foo<'_, '_, u8>` is not satisfied
74- --> $DIR/substs-ppaux.rs:49 :6
80+ --> $DIR/substs-ppaux.rs:55 :6
7581 |
7682LL | <str as Foo<u8>>::bar;
7783 | ^^^ the trait `Sized` is not implemented for `str`, which is required by `str: Foo<'_, '_, u8>`
7884 |
7985note: required for `str` to implement `Foo<'_, '_, u8>`
80- --> $DIR/substs-ppaux.rs:11:17
86+ --> $DIR/substs-ppaux.rs:15:20
8187 |
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
8692
8793error: aborting due to 5 previous errors
8894
0 commit comments