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