@@ -3,60 +3,91 @@ struct S(u8, (u8, u8));
33fn main ( ) {
44 let s = S ( 0 , ( 0 , 0 ) ) ;
55
6- s. 1 e1 ; //~ ERROR no field `1e1` on type `S`
7- s. 1 . ; //~ ERROR unexpected token: `;`
8- s . 1 . 1 ;
9- s. 1 . 1 e1 ; //~ ERROR no field `1e1` on type `(u8, u8)`
6+ { s. 1 e1 ; } //~ ERROR no field `1e1` on type `S`
7+
8+ { s. 1 . ; } //~ ERROR unexpected token: `;`
9+
10+ { s. 1 . 1 ; }
11+
12+ { s. 1 . 1 e1 ; } //~ ERROR no field `1e1` on type `(u8, u8)`
13+
1014 { s. 1 e+; } //~ ERROR unexpected token: `1e+`
1115 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+`
1216 //~| ERROR expected at least one digit in exponent
17+
1318 { s. 1 e-; } //~ ERROR unexpected token: `1e-`
1419 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-`
1520 //~| ERROR expected at least one digit in exponent
21+
1622 { s. 1 e+1 ; } //~ ERROR unexpected token: `1e+1`
1723 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+1`
24+
1825 { s. 1 e-1 ; } //~ ERROR unexpected token: `1e-1`
1926 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-1`
27+
2028 { s. 1 . 1 e+1 ; } //~ ERROR unexpected token: `1.1e+1`
2129 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e+1`
30+
2231 { s. 1 . 1 e-1 ; } //~ ERROR unexpected token: `1.1e-1`
2332 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e-1`
24- s. 0x1e1 ; //~ ERROR no field `0x1e1` on type `S`
25- s. 0x1 . ; //~ ERROR no field `0x1` on type `S`
26- //~| ERROR hexadecimal float literal is not supported
27- //~| ERROR unexpected token: `;`
28- s. 0x1 . 1 ; //~ ERROR no field `0x1` on type `S`
29- //~| ERROR hexadecimal float literal is not supported
30- s. 0x1 . 1 e1 ; //~ ERROR no field `0x1` on type `S`
31- //~| ERROR hexadecimal float literal is not supported
33+
34+ { s. 0x1e1 ; } //~ ERROR no field `0x1e1` on type `S`
35+
36+ { s. 0x1 . ; } //~ ERROR hexadecimal float literal is not supported
37+ //~| ERROR unexpected token: `0x1.`
38+ //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.`
39+
40+ { s. 0x1 . 1 ; } //~ ERROR hexadecimal float literal is not supported
41+ //~| ERROR unexpected token: `0x1.1`
42+ //~| expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.1`
43+
44+ { s. 0x1 . 1 e1 ; } //~ ERROR hexadecimal float literal is not supported
45+ //~| ERROR unexpected token: `0x1.1e1`
46+ //~| expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.1e1`
47+
3248 { s. 0x1e +; } //~ ERROR expected expression, found `;`
49+
3350 { s. 0x1e -; } //~ ERROR expected expression, found `;`
34- s. 0x1e +1 ; //~ ERROR no field `0x1e` on type `S`
35- s. 0x1e -1 ; //~ ERROR no field `0x1e` on type `S`
51+
52+ { s. 0x1e +1 ; } //~ ERROR no field `0x1e` on type `S`
53+
54+ { s. 0x1e -1 ; } //~ ERROR no field `0x1e` on type `S`
55+
3656 { s. 0x1 . 1 e+1 ; } //~ ERROR unexpected token: `0x1.1e+1`
3757 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.1e+1`
3858 //~| ERROR hexadecimal float literal is not supported
59+
3960 { s. 0x1 . 1 e-1 ; } //~ ERROR unexpected token: `0x1.1e-1`
4061 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.1e-1`
4162 //~| ERROR hexadecimal float literal is not supported
42- s. 1 e1f32 ; //~ ERROR no field `1e1` on type `S`
43- //~| ERROR suffixes on a tuple index are invalid
44- s. 1 . f32 ; //~ ERROR no field `f32` on type `(u8, u8)`
45- s. 1 . 1f32 ; //~ ERROR suffixes on a tuple index are invalid
46- s. 1 . 1 e1f32 ; //~ ERROR no field `1e1` on type `(u8, u8)`
47- //~| ERROR suffixes on a tuple index are invalid
63+
64+ { s. 1 e1f32 ; } //~ ERROR no field `1e1` on type `S`
65+ //~| ERROR suffixes on a tuple index are invalid
66+
67+ { s. 1 . f32 ; } //~ ERROR no field `f32` on type `(u8, u8)`
68+
69+ { s. 1 . 1f32 ; } //~ ERROR suffixes on a tuple index are invalid
70+
71+ { s. 1 . 1 e1f32 ; } //~ ERROR no field `1e1` on type `(u8, u8)`
72+ //~| ERROR suffixes on a tuple index are invalid
73+
4874 { s. 1 e+f32; } //~ ERROR unexpected token: `1e+f32`
4975 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+f32`
5076 //~| ERROR expected at least one digit in exponent
77+
5178 { s. 1 e-f32; } //~ ERROR unexpected token: `1e-f32`
5279 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-f32`
5380 //~| ERROR expected at least one digit in exponent
81+
5482 { s. 1 e+1f32 ; } //~ ERROR unexpected token: `1e+1f32`
5583 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+1f32`
84+
5685 { s. 1 e-1f32 ; } //~ ERROR unexpected token: `1e-1f32`
5786 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-1f32`
87+
5888 { s. 1 . 1 e+1f32 ; } //~ ERROR unexpected token: `1.1e+1f32`
5989 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e+1f32`
90+
6091 { s. 1 . 1 e-1f32 ; } //~ ERROR unexpected token: `1.1e-1f32`
6192 //~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e-1f32`
6293}
0 commit comments