rust/src/test/ui/discrim/discrim-overflow.stderr
2018-12-25 21:08:33 -07:00

68 lines
2.3 KiB
Plaintext

error[E0370]: enum discriminant overflowed
--> $DIR/discrim-overflow.rs:15:9
|
LL | OhNo, //~ ERROR enum discriminant overflowed [E0370]
| ^^^^ overflowed on value after 127
|
= note: explicitly set `OhNo = -128` if that is desired outcome
error[E0370]: enum discriminant overflowed
--> $DIR/discrim-overflow.rs:26:9
|
LL | OhNo, //~ ERROR enum discriminant overflowed [E0370]
| ^^^^ overflowed on value after 255
|
= note: explicitly set `OhNo = 0` if that is desired outcome
error[E0370]: enum discriminant overflowed
--> $DIR/discrim-overflow.rs:37:9
|
LL | OhNo, //~ ERROR enum discriminant overflowed [E0370]
| ^^^^ overflowed on value after 32767
|
= note: explicitly set `OhNo = -32768` if that is desired outcome
error[E0370]: enum discriminant overflowed
--> $DIR/discrim-overflow.rs:48:9
|
LL | OhNo, //~ ERROR enum discriminant overflowed [E0370]
| ^^^^ overflowed on value after 65535
|
= note: explicitly set `OhNo = 0` if that is desired outcome
error[E0370]: enum discriminant overflowed
--> $DIR/discrim-overflow.rs:60:9
|
LL | OhNo, //~ ERROR enum discriminant overflowed [E0370]
| ^^^^ overflowed on value after 2147483647
|
= note: explicitly set `OhNo = -2147483648` if that is desired outcome
error[E0370]: enum discriminant overflowed
--> $DIR/discrim-overflow.rs:72:9
|
LL | OhNo, //~ ERROR enum discriminant overflowed [E0370]
| ^^^^ overflowed on value after 4294967295
|
= note: explicitly set `OhNo = 0` if that is desired outcome
error[E0370]: enum discriminant overflowed
--> $DIR/discrim-overflow.rs:84:9
|
LL | OhNo, //~ ERROR enum discriminant overflowed [E0370]
| ^^^^ overflowed on value after 9223372036854775807
|
= note: explicitly set `OhNo = -9223372036854775808` if that is desired outcome
error[E0370]: enum discriminant overflowed
--> $DIR/discrim-overflow.rs:96:9
|
LL | OhNo, //~ ERROR enum discriminant overflowed [E0370]
| ^^^^ overflowed on value after 18446744073709551615
|
= note: explicitly set `OhNo = 0` if that is desired outcome
error: aborting due to 8 previous errors
For more information about this error, try `rustc --explain E0370`.