You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: `repr(C)` enums with big discriminants are non-portable, and their size in Rust might not match their size in C
26
26
= help: use `repr($int_ty)` instead to explicitly set the size of this enum
27
27
28
-
error: `repr(C)` enum discriminant does not fit into C `int`
29
-
--> $DIR/repr-c-big-discriminant1.rs:34:5
28
+
error: `repr(C)` enum discriminant does not fit into C `unsigned int`, and a previous discriminant does not fit into C `int`
29
+
--> $DIR/repr-c-big-discriminant1.rs:36:5
30
+
|
31
+
LL | B = -1,
32
+
| ^
33
+
|
34
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
35
+
= note: for more information, see issue #124403 <https://github.com/rust-lang/rust/issues/124403>
36
+
= note: `repr(C)` enums with big discriminants are non-portable, and their size in Rust might not match their size in C
37
+
= help: use `repr($int_ty)` instead to explicitly set the size of this enum
38
+
39
+
error: `repr(C)` enum discriminant does not fit into C `int`, and a previous discriminant does not fit into C `unsigned int`
40
+
--> $DIR/repr-c-big-discriminant1.rs:43:5
41
+
|
42
+
LL | A = 2147483648, // i32::MAX+1
43
+
| ^
44
+
|
45
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
46
+
= note: for more information, see issue #124403 <https://github.com/rust-lang/rust/issues/124403>
47
+
= note: `repr(C)` enums with big discriminants are non-portable, and their size in Rust might not match their size in C
48
+
= help: use `repr($int_ty)` instead to explicitly set the size of this enum
49
+
50
+
error: `repr(C)` enum discriminant does not fit into C `int` nor into C `unsigned int`
51
+
--> $DIR/repr-c-big-discriminant1.rs:53:5
30
52
|
31
53
LL | A = I64_MAX as isize,
32
54
| ^
@@ -36,5 +58,5 @@ LL | A = I64_MAX as isize,
36
58
= note: `repr(C)` enums with big discriminants are non-portable, and their size in Rust might not match their size in C
37
59
= help: use `repr($int_ty)` instead to explicitly set the size of this enum
0 commit comments