@@ -16,35 +16,35 @@ fn foo<'z>() where &'z (): Sized {
16
16
let x: ( ) = <i8 as Foo < ' static , ' static , u8 > >:: bar :: < ' static , char > ;
17
17
//[verbose]~^ ERROR mismatched types
18
18
//[verbose]~| expected unit type `()`
19
- //[verbose]~| found fn item `fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::bar::<ReStatic, char>}`
19
+ //[verbose]~| found fn item `[fn item {<i8 as Foo<ReStatic, ReStatic, u8>>::bar::<ReStatic, char>}: fn()] `
20
20
//[normal]~^^^^ ERROR mismatched types
21
21
//[normal]~| expected unit type `()`
22
- //[normal]~| found fn item `fn() {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>}`
22
+ //[normal]~| found fn item `[fn item {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>}: fn()] `
23
23
24
24
25
25
let x: ( ) = <i8 as Foo < ' static , ' static , u32 > >:: bar :: < ' static , char > ;
26
26
//[verbose]~^ ERROR mismatched types
27
27
//[verbose]~| expected unit type `()`
28
- //[verbose]~| found fn item `fn() {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>}`
28
+ //[verbose]~| found fn item `[fn item {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>}: fn()] `
29
29
//[normal]~^^^^ ERROR mismatched types
30
30
//[normal]~| expected unit type `()`
31
- //[normal]~| found fn item `fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>}`
31
+ //[normal]~| found fn item `[fn item {<i8 as Foo<'static, 'static>>::bar::<'static, char>}: fn()] `
32
32
33
33
let x: ( ) = <i8 as Foo < ' static , ' static , u8 > >:: baz;
34
34
//[verbose]~^ ERROR mismatched types
35
35
//[verbose]~| expected unit type `()`
36
- //[verbose]~| found fn item `fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::baz}`
36
+ //[verbose]~| found fn item `[fn item {<i8 as Foo<ReStatic, ReStatic, u8>>::baz}: fn()] `
37
37
//[normal]~^^^^ ERROR mismatched types
38
38
//[normal]~| expected unit type `()`
39
- //[normal]~| found fn item `fn() {<i8 as Foo<'static, 'static, u8>>::baz}`
39
+ //[normal]~| found fn item `[fn item {<i8 as Foo<'static, 'static, u8>>::baz}: fn()] `
40
40
41
41
let x: ( ) = foo :: < ' static > ;
42
42
//[verbose]~^ ERROR mismatched types
43
43
//[verbose]~| expected unit type `()`
44
- //[verbose]~| found fn item `fn() {foo::<ReStatic>}`
44
+ //[verbose]~| found fn item `[fn item {foo::<ReStatic>}: fn()] `
45
45
//[normal]~^^^^ ERROR mismatched types
46
46
//[normal]~| expected unit type `()`
47
- //[normal]~| found fn item `fn() {foo::<'static>}`
47
+ //[normal]~| found fn item `[fn item {foo::<'static>}: fn()] `
48
48
49
49
<str as Foo < u8 > >:: bar;
50
50
//[verbose]~^ ERROR the size for values of type
0 commit comments