@@ -2,15 +2,15 @@ error[E0308]: mismatched types
22 --> $DIR/substs-ppaux.rs:16:17
33 |
44LL | 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
66...
77LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>;
88 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
99 | |
1010 | expected due to this
1111 |
1212 = 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()] `
1414help: use parentheses to call this function
1515 |
1616LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>();
@@ -20,15 +20,15 @@ error[E0308]: mismatched types
2020 --> $DIR/substs-ppaux.rs:25:17
2121 |
2222LL | 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
2424...
2525LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>;
2626 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
2727 | |
2828 | expected due to this
2929 |
3030 = 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()] `
3232help: use parentheses to call this function
3333 |
3434LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>();
@@ -38,15 +38,15 @@ error[E0308]: mismatched types
3838 --> $DIR/substs-ppaux.rs:33:17
3939 |
4040LL | 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
4242...
4343LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz;
4444 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
4545 | |
4646 | expected due to this
4747 |
4848 = 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()] `
5050help: use parentheses to call this function
5151 |
5252LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz();
@@ -56,15 +56,15 @@ error[E0308]: mismatched types
5656 --> $DIR/substs-ppaux.rs:41:17
5757 |
5858LL | fn foo<'z>() where &'z (): Sized {
59- | -------------------------------- fn() {foo::<ReStatic>} defined here
59+ | -------------------------------- [fn item {foo::<ReStatic>}: fn()] defined here
6060...
6161LL | let x: () = foo::<'static>;
6262 | -- ^^^^^^^^^^^^^^ expected `()`, found fn item
6363 | |
6464 | expected due to this
6565 |
6666 = note: expected unit type `()`
67- found fn item `fn() {foo::<ReStatic>}`
67+ found fn item `[fn item {foo::<ReStatic>}: fn()] `
6868help: use parentheses to call this function
6969 |
7070LL | let x: () = foo::<'static>();
0 commit comments