summary refs log tree commit diff
path: root/src/test/ui/eval-enum.stderr
blob: f26c48f1a72ae112daac2217e30402fa6624c05e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
error: attempt to divide by zero
  --> $DIR/eval-enum.rs:12:15
   |
LL |     DivZero = 1/0,
   |               ^^^
   |
   = note: #[deny(const_err)] on by default

error: this expression will panic at runtime
  --> $DIR/eval-enum.rs:12:15
   |
LL |     DivZero = 1/0,
   |               ^^^ attempt to divide by zero

error[E0080]: could not evaluate enum discriminant
  --> $DIR/eval-enum.rs:12:15
   |
LL |     DivZero = 1/0,
   |               ^^^ attempt to divide by zero

error: attempt to calculate the remainder with a divisor of zero
  --> $DIR/eval-enum.rs:16:15
   |
LL |     RemZero = 1%0,
   |               ^^^

error: this expression will panic at runtime
  --> $DIR/eval-enum.rs:16:15
   |
LL |     RemZero = 1%0,
   |               ^^^ attempt to calculate the remainder with a divisor of zero

error[E0080]: could not evaluate enum discriminant
  --> $DIR/eval-enum.rs:16:15
   |
LL |     RemZero = 1%0,
   |               ^^^ attempt to calculate the remainder with a divisor of zero

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0080`.