@@ -18,40 +18,18 @@ fn main() {
18
18
0o7 . 0 e7f64 ; //~ ERROR: octal float literal is not supported
19
19
0x8 . 0 e+9 ; //~ ERROR: hexadecimal float literal is not supported
20
20
0x9 . 0 e-9 ; //~ ERROR: hexadecimal float literal is not supported
21
+ 0 o; //~ ERROR: no valid digits
22
+ 1 e+; //~ ERROR: expected at least one digit in exponent
23
+ 0x539 . 0 ; //~ ERROR: hexadecimal float literal is not supported
24
+ 99999999999999999999999999999999 ; //~ ERROR: int literal is too large
25
+ 99999999999999999999999999999999u32 ; //~ ERROR: int literal is too large
26
+ 0 x; //~ ERROR: no valid digits
27
+ 0 xu32; //~ ERROR: no valid digits
28
+ 0 ou32; //~ ERROR: no valid digits
29
+ 0 bu32; //~ ERROR: no valid digits
30
+ 0 b; //~ ERROR: no valid digits
31
+ 0o123f64 ; //~ ERROR: octal float literal is not supported
32
+ 0o123 . 456 ; //~ ERROR: octal float literal is not supported
33
+ 0b101f64 ; //~ ERROR: binary float literal is not supported
34
+ 0b111 . 101 ; //~ ERROR: binary float literal is not supported
21
35
}
22
-
23
- static F : f32 =
24
- 1 e+ //~ ERROR: scan_exponent: bad fp literal
25
- ;
26
-
27
-
28
- static F : f32 =
29
- 0x539 . 0 //~ ERROR: hexadecimal float literal is not supported
30
- ;
31
-
32
- static I : int =
33
- 99999999999999999999999999999999 //~ ERROR: int literal is too large
34
- ;
35
-
36
- static J : int =
37
- 99999999999999999999999999999999u32 //~ ERROR: int literal is too large
38
- ;
39
-
40
- static A : int =
41
- 0 x //~ ERROR: no valid digits
42
- ;
43
- static B : int =
44
- 0 xu32 //~ ERROR: no valid digits
45
- ;
46
- static C : int =
47
- 0 ou32 //~ ERROR: no valid digits
48
- ;
49
- static D : int =
50
- 0 bu32 //~ ERROR: no valid digits
51
- ;
52
- static E : int =
53
- 0 b //~ ERROR: no valid digits
54
- ;
55
- static F : int =
56
- 0 o //~ ERROR: no valid digits
57
- ;
0 commit comments