summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0080.stderr
blob: 2ec2ad31b53bb8ddb19316006715ced21db8c494 (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
warning: constant evaluation error: attempt to shift left with overflow
  --> $DIR/E0080.rs:12:9
   |
12 |     X = (1 << 500), //~ ERROR E0080
   |         ^^^^^^^^^^
   |
   = note: #[warn(const_err)] on by default

error[E0080]: constant evaluation error
  --> $DIR/E0080.rs:12:9
   |
12 |     X = (1 << 500), //~ ERROR E0080
   |         ^^^^^^^^^^ attempt to shift left with overflow

warning: constant evaluation error: attempt to divide by zero
  --> $DIR/E0080.rs:14:9
   |
14 |     Y = (1 / 0) //~ ERROR E0080
   |         ^^^^^^^

error[E0080]: constant evaluation error
  --> $DIR/E0080.rs:14:9
   |
14 |     Y = (1 / 0) //~ ERROR E0080
   |         ^^^^^^^ attempt to divide by zero

error: aborting due to 2 previous errors