summary refs log tree commit diff
path: root/src/test/ui/mir/mir_detects_invalid_ops.stderr
blob: 41f03789f237f62cf0b260d3b9a4613e07c1c18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: this operation will panic at runtime
  --> $DIR/mir_detects_invalid_ops.rs:11:14
   |
LL |     let _z = 1 / y;
   |              ^^^^^ attempt to divide by zero
   |
   = note: `#[deny(unconditional_panic)]` on by default

error: this operation will panic at runtime
  --> $DIR/mir_detects_invalid_ops.rs:16:14
   |
LL |     let _z = 1 % y;
   |              ^^^^^ attempt to calculate the remainder with a divisor of zero

error: this operation will panic at runtime
  --> $DIR/mir_detects_invalid_ops.rs:22:18
   |
LL |         let _b = (*a)[3];
   |                  ^^^^^^^ index out of bounds: the len is 3 but the index is 3

error: aborting due to 3 previous errors