]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-15524.stderr
Consider privacy more carefully when suggesting accessing fields
[rust.git] / src / test / ui / issues / issue-15524.stderr
1 error[E0081]: discriminant value `1` assigned more than once
2   --> $DIR/issue-15524.rs:3:1
3    |
4 LL | enum Foo {
5    | ^^^^^^^^
6 ...
7 LL |     A = 1,
8    |         - first assignment of `1`
9 LL |     B = 1,
10    |         - second assignment of `1`
11
12 error[E0081]: discriminant value `1` assigned more than once
13   --> $DIR/issue-15524.rs:3:1
14    |
15 LL | enum Foo {
16    | ^^^^^^^^
17 ...
18 LL |     A = 1,
19    |         - first assignment of `1`
20 LL |     B = 1,
21 LL |     C = 0,
22    |     ----- assigned discriminant for `D` was incremented from this discriminant
23 LL |     D,
24    |     - second assignment of `1`
25
26 error[E0081]: discriminant value `1` assigned more than once
27   --> $DIR/issue-15524.rs:3:1
28    |
29 LL | enum Foo {
30    | ^^^^^^^^
31 ...
32 LL |     A = 1,
33    |         - first assignment of `1`
34 ...
35 LL |     E = N,
36    |         - second assignment of `1`
37
38 error: aborting due to 3 previous errors
39
40 For more information about this error, try `rustc --explain E0081`.