@@ -3,60 +3,89 @@ 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 no field `0x1` on type `S`
37
+ //~| ERROR hexadecimal float literal is not supported
38
+ //~| ERROR unexpected token: `;`
39
+
40
+ { s. 0x1 . 1 ; } //~ ERROR no field `0x1` on type `S`
41
+ //~| ERROR hexadecimal float literal is not supported
42
+
43
+ { s. 0x1 . 1 e1 ; } //~ ERROR no field `0x1` on type `S`
44
+ //~| ERROR hexadecimal float literal is not supported
45
+
32
46
{ s. 0x1e +; } //~ ERROR expected expression, found `;`
47
+
33
48
{ 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`
49
+
50
+ { s. 0x1e +1 ; } //~ ERROR no field `0x1e` on type `S`
51
+
52
+ { s. 0x1e -1 ; } //~ ERROR no field `0x1e` on type `S`
53
+
36
54
{ s. 0x1 . 1 e+1 ; } //~ ERROR unexpected token: `0x1.1e+1`
37
55
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.1e+1`
38
56
//~| ERROR hexadecimal float literal is not supported
57
+
39
58
{ s. 0x1 . 1 e-1 ; } //~ ERROR unexpected token: `0x1.1e-1`
40
59
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `0x1.1e-1`
41
60
//~| 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
61
+
62
+ { s. 1 e1f32 ; } //~ ERROR no field `1e1` on type `S`
63
+ //~| ERROR suffixes on a tuple index are invalid
64
+
65
+ { s. 1 . f32 ; } //~ ERROR no field `f32` on type `(u8, u8)`
66
+
67
+ { s. 1 . 1f32 ; } //~ ERROR suffixes on a tuple index are invalid
68
+
69
+ { s. 1 . 1 e1f32 ; } //~ ERROR no field `1e1` on type `(u8, u8)`
70
+ //~| ERROR suffixes on a tuple index are invalid
71
+
48
72
{ s. 1 e+f32; } //~ ERROR unexpected token: `1e+f32`
49
73
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+f32`
50
74
//~| ERROR expected at least one digit in exponent
75
+
51
76
{ s. 1 e-f32; } //~ ERROR unexpected token: `1e-f32`
52
77
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-f32`
53
78
//~| ERROR expected at least one digit in exponent
79
+
54
80
{ s. 1 e+1f32 ; } //~ ERROR unexpected token: `1e+1f32`
55
81
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e+1f32`
82
+
56
83
{ s. 1 e-1f32 ; } //~ ERROR unexpected token: `1e-1f32`
57
84
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1e-1f32`
85
+
58
86
{ s. 1 . 1 e+1f32 ; } //~ ERROR unexpected token: `1.1e+1f32`
59
87
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e+1f32`
88
+
60
89
{ s. 1 . 1 e-1f32 ; } //~ ERROR unexpected token: `1.1e-1f32`
61
90
//~| ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `1.1e-1f32`
62
91
}
0 commit comments