]> git.lizzy.rs Git - rust.git/blob - src/test/ui/eval-enum.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / eval-enum.stderr
1 error: attempt to divide by zero
2   --> $DIR/eval-enum.rs:12:15
3    |
4 LL |     DivZero = 1/0,
5    |               ^^^
6    |
7    = note: #[deny(const_err)] on by default
8
9 error: this expression will panic at runtime
10   --> $DIR/eval-enum.rs:12:15
11    |
12 LL |     DivZero = 1/0,
13    |               ^^^ attempt to divide by zero
14
15 error[E0080]: could not evaluate enum discriminant
16   --> $DIR/eval-enum.rs:12:15
17    |
18 LL |     DivZero = 1/0,
19    |               ^^^ attempt to divide by zero
20
21 error: attempt to calculate the remainder with a divisor of zero
22   --> $DIR/eval-enum.rs:16:15
23    |
24 LL |     RemZero = 1%0,
25    |               ^^^
26
27 error: this expression will panic at runtime
28   --> $DIR/eval-enum.rs:16:15
29    |
30 LL |     RemZero = 1%0,
31    |               ^^^ attempt to calculate the remainder with a divisor of zero
32
33 error[E0080]: could not evaluate enum discriminant
34   --> $DIR/eval-enum.rs:16:15
35    |
36 LL |     RemZero = 1%0,
37    |               ^^^ attempt to calculate the remainder with a divisor of zero
38
39 error: aborting due to 6 previous errors
40
41 For more information about this error, try `rustc --explain E0080`.