]> git.proxmox.com Git - rustc.git/blame - src/test/ui/discrim/discrim-overflow-2.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / discrim / discrim-overflow-2.stderr
CommitLineData
ff7c6d11 1error[E0370]: enum discriminant overflowed
fc512014 2 --> $DIR/discrim-overflow-2.rs:13:9
ff7c6d11 3 |
532ac7d7 4LL | OhNo,
0531ce1d 5 | ^^^^ overflowed on value after 127
ff7c6d11 6 |
0531ce1d 7 = note: explicitly set `OhNo = -128` if that is desired outcome
ff7c6d11
XL
8
9error[E0370]: enum discriminant overflowed
fc512014 10 --> $DIR/discrim-overflow-2.rs:22:9
ff7c6d11 11 |
532ac7d7 12LL | OhNo,
0531ce1d 13 | ^^^^ overflowed on value after 255
ff7c6d11 14 |
0531ce1d 15 = note: explicitly set `OhNo = 0` if that is desired outcome
ff7c6d11
XL
16
17error[E0370]: enum discriminant overflowed
fc512014 18 --> $DIR/discrim-overflow-2.rs:31:9
ff7c6d11 19 |
532ac7d7 20LL | OhNo,
0531ce1d 21 | ^^^^ overflowed on value after 32767
ff7c6d11 22 |
0531ce1d 23 = note: explicitly set `OhNo = -32768` if that is desired outcome
ff7c6d11
XL
24
25error[E0370]: enum discriminant overflowed
fc512014 26 --> $DIR/discrim-overflow-2.rs:40:9
ff7c6d11 27 |
532ac7d7 28LL | OhNo,
0531ce1d 29 | ^^^^ overflowed on value after 65535
ff7c6d11 30 |
0531ce1d 31 = note: explicitly set `OhNo = 0` if that is desired outcome
ff7c6d11
XL
32
33error[E0370]: enum discriminant overflowed
fc512014 34 --> $DIR/discrim-overflow-2.rs:49:9
ff7c6d11 35 |
532ac7d7 36LL | OhNo,
0531ce1d 37 | ^^^^ overflowed on value after 2147483647
ff7c6d11 38 |
0531ce1d 39 = note: explicitly set `OhNo = -2147483648` if that is desired outcome
ff7c6d11
XL
40
41error[E0370]: enum discriminant overflowed
fc512014 42 --> $DIR/discrim-overflow-2.rs:58:9
ff7c6d11 43 |
532ac7d7 44LL | OhNo,
0531ce1d 45 | ^^^^ overflowed on value after 4294967295
ff7c6d11 46 |
0531ce1d 47 = note: explicitly set `OhNo = 0` if that is desired outcome
ff7c6d11
XL
48
49error[E0370]: enum discriminant overflowed
fc512014 50 --> $DIR/discrim-overflow-2.rs:67:9
ff7c6d11 51 |
532ac7d7 52LL | OhNo,
0531ce1d 53 | ^^^^ overflowed on value after 9223372036854775807
ff7c6d11 54 |
0531ce1d 55 = note: explicitly set `OhNo = -9223372036854775808` if that is desired outcome
ff7c6d11
XL
56
57error[E0370]: enum discriminant overflowed
fc512014 58 --> $DIR/discrim-overflow-2.rs:76:9
ff7c6d11 59 |
532ac7d7 60LL | OhNo,
0531ce1d 61 | ^^^^ overflowed on value after 18446744073709551615
ff7c6d11 62 |
0531ce1d 63 = note: explicitly set `OhNo = 0` if that is desired outcome
ff7c6d11
XL
64
65error: aborting due to 8 previous errors
66
0531ce1d 67For more information about this error, try `rustc --explain E0370`.