]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0081.stderr
Rollup merge of #98101 - vladimir-ea:stdlib_watch_os, r=thomcc
[rust.git] / src / test / ui / error-codes / E0081.stderr
1 error[E0081]: discriminant value `3` assigned more than once
2   --> $DIR/E0081.rs:1:1
3    |
4 LL | enum Enum {
5    | ^^^^^^^^^
6 LL |
7 LL |     P = 3,
8    |         - first assignment of `3`
9 LL |
10 LL |     X = 3,
11    |         - second assignment of `3`
12
13 error[E0081]: discriminant value `1` assigned more than once
14   --> $DIR/E0081.rs:11:1
15    |
16 LL | enum EnumOverflowRepr {
17    | ^^^^^^^^^^^^^^^^^^^^^
18 LL |
19 LL |     P = 257,
20    |         --- first assignment of `1` (overflowed from `257`)
21 LL |
22 LL |     X = 513,
23    |         --- second assignment of `1` (overflowed from `513`)
24
25 error[E0081]: discriminant value `-1` assigned more than once
26   --> $DIR/E0081.rs:20:1
27    |
28 LL | enum NegDisEnum {
29    | ^^^^^^^^^^^^^^^
30 LL |
31 LL |     First = -1,
32    |             -- first assignment of `-1`
33 LL |
34 LL |     Second = -2,
35    |     ----------- assigned discriminant for `Last` was incremented from this discriminant
36 LL |
37 LL |     Last,
38    |     ---- second assignment of `-1`
39
40 error: aborting due to 3 previous errors
41
42 For more information about this error, try `rustc --explain E0081`.