diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-15524.stderr | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-15524.stderr b/src/test/ui/issues/issue-15524.stderr new file mode 100644 index 000000000..1195e0a34 --- /dev/null +++ b/src/test/ui/issues/issue-15524.stderr @@ -0,0 +1,40 @@ +error[E0081]: discriminant value `1` assigned more than once + --> $DIR/issue-15524.rs:3:1 + | +LL | enum Foo { + | ^^^^^^^^ +... +LL | A = 1, + | - first assignment of `1` +LL | B = 1, + | - second assignment of `1` + +error[E0081]: discriminant value `1` assigned more than once + --> $DIR/issue-15524.rs:3:1 + | +LL | enum Foo { + | ^^^^^^^^ +... +LL | A = 1, + | - first assignment of `1` +LL | B = 1, +LL | C = 0, + | ----- assigned discriminant for `D` was incremented from this discriminant +LL | D, + | - second assignment of `1` + +error[E0081]: discriminant value `1` assigned more than once + --> $DIR/issue-15524.rs:3:1 + | +LL | enum Foo { + | ^^^^^^^^ +... +LL | A = 1, + | - first assignment of `1` +... +LL | E = N, + | - second assignment of `1` + +error: aborting due to 3 previous errors + +For more information about this error, try `rustc --explain E0081`. |