@@ -3,60 +3,91 @@ struct S(u8, (u8, u8));
3
3
fn main ( ) {
4
4
let s = S ( 0 , ( 0 , 0 ) ) ;
5
5
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
+
10
14
{ s. 1 e+; } //~ ERROR unexpected token: `1e+`
11
15
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+`
12
16
//~| ERROR expected at least one digit in exponent
17
+
13
18
{ s. 1 e-; } //~ ERROR unexpected token: `1e-`
14
19
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-`
15
20
//~| ERROR expected at least one digit in exponent
21
+
16
22
{ s. 1 e+1 ; } //~ ERROR unexpected token: `1e+1`
17
23
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+1`
24
+
18
25
{ s. 1 e-1 ; } //~ ERROR unexpected token: `1e-1`
19
26
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-1`
27
+
20
28
{ s. 1 . 1 e+1 ; } //~ ERROR unexpected token: `1.1e+1`
21
29
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e+1`
30
+
22
31
{ s. 1 . 1 e-1 ; } //~ ERROR unexpected token: `1.1e-1`
23
32
//~| 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
+
32
48
{ s. 0x1e +; } //~ ERROR expected expression, found `;`
49
+
33
50
{ 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
+
36
56
{ s. 0x1 . 1 e+1 ; } //~ ERROR unexpected token: `0x1.1e+1`
37
57
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.1e+1`
38
58
//~| ERROR hexadecimal float literal is not supported
59
+
39
60
{ s. 0x1 . 1 e-1 ; } //~ ERROR unexpected token: `0x1.1e-1`
40
61
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.1e-1`
41
62
//~| 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
+
48
74
{ s. 1 e+f32; } //~ ERROR unexpected token: `1e+f32`
49
75
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+f32`
50
76
//~| ERROR expected at least one digit in exponent
77
+
51
78
{ s. 1 e-f32; } //~ ERROR unexpected token: `1e-f32`
52
79
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-f32`
53
80
//~| ERROR expected at least one digit in exponent
81
+
54
82
{ s. 1 e+1f32 ; } //~ ERROR unexpected token: `1e+1f32`
55
83
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+1f32`
84
+
56
85
{ s. 1 e-1f32 ; } //~ ERROR unexpected token: `1e-1f32`
57
86
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-1f32`
87
+
58
88
{ s. 1 . 1 e+1f32 ; } //~ ERROR unexpected token: `1.1e+1f32`
59
89
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e+1f32`
90
+
60
91
{ s. 1 . 1 e-1f32 ; } //~ ERROR unexpected token: `1.1e-1f32`
61
92
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e-1f32`
62
93
}
0 commit comments