|
1 | 1 | error[E0308]: mismatched types |
2 | 2 | --> $DIR/substs-ppaux.rs:16:17 |
3 | 3 | | |
| 4 | +LL | fn bar<'a, T>() where T: 'a {} |
| 5 | + | --------------------------- fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::bar::<ReStatic, char>} defined here |
| 6 | +... |
4 | 7 | LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>; |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found fn item |
| 8 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 9 | + | | |
| 10 | + | expected (), found fn item |
| 11 | + | help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>()` |
6 | 12 | | |
7 | 13 | = note: expected type `()` |
8 | 14 | found type `fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::bar::<ReStatic, char>}` |
9 | 15 |
|
10 | 16 | error[E0308]: mismatched types |
11 | 17 | --> $DIR/substs-ppaux.rs:25:17 |
12 | 18 | | |
| 19 | +LL | fn bar<'a, T>() where T: 'a {} |
| 20 | + | --------------------------- fn() {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>} defined here |
| 21 | +... |
13 | 22 | LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>; |
14 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found fn item |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + | | |
| 25 | + | expected (), found fn item |
| 26 | + | help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u32>>::bar::<'static, char>()` |
15 | 27 | | |
16 | 28 | = note: expected type `()` |
17 | 29 | found type `fn() {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>}` |
18 | 30 |
|
19 | 31 | error[E0308]: mismatched types |
20 | 32 | --> $DIR/substs-ppaux.rs:33:17 |
21 | 33 | | |
| 34 | +LL | fn baz() {} |
| 35 | + | -------- fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::baz} defined here |
| 36 | +... |
22 | 37 | LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz; |
23 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found fn item |
| 38 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 39 | + | | |
| 40 | + | expected (), found fn item |
| 41 | + | help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u8>>::baz()` |
24 | 42 | | |
25 | 43 | = note: expected type `()` |
26 | 44 | found type `fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::baz}` |
27 | 45 |
|
28 | 46 | error[E0308]: mismatched types |
29 | 47 | --> $DIR/substs-ppaux.rs:41:17 |
30 | 48 | | |
| 49 | +LL | fn foo<'z>() where &'z (): Sized { |
| 50 | + | -------------------------------- fn() {foo::<ReStatic>} defined here |
| 51 | +... |
31 | 52 | LL | let x: () = foo::<'static>; |
32 | | - | ^^^^^^^^^^^^^^ expected (), found fn item |
| 53 | + | ^^^^^^^^^^^^^^ |
| 54 | + | | |
| 55 | + | expected (), found fn item |
| 56 | + | help: use parentheses to call this function: `foo::<'static>()` |
33 | 57 | | |
34 | 58 | = note: expected type `()` |
35 | 59 | found type `fn() {foo::<ReStatic>}` |
|
0 commit comments