summary refs log tree commit diff
path: root/src/test/ui/const-eval/promoted_errors.stderr
blob: a4c1c48a03dfe30f1a5a5f6f3076b9e7ccd884a8 (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
42
warning: this expression will panic at runtime
  --> $DIR/promoted_errors.rs:17:14
   |
LL |     let _x = 0u32 - 1;
   |              ^^^^^^^^ attempt to subtract with overflow
   |
note: lint level defined here
  --> $DIR/promoted_errors.rs:11:9
   |
LL | #![warn(const_err)]
   |         ^^^^^^^^^

warning: attempt to divide by zero
  --> $DIR/promoted_errors.rs:19:20
   |
LL |     println!("{}", 1/(1-1));
   |                    ^^^^^^^

warning: this expression will panic at runtime
  --> $DIR/promoted_errors.rs:19:20
   |
LL |     println!("{}", 1/(1-1));
   |                    ^^^^^^^ attempt to divide by zero

warning: attempt to divide by zero
  --> $DIR/promoted_errors.rs:22:14
   |
LL |     let _x = 1/(1-1);
   |              ^^^^^^^

warning: this expression will panic at runtime
  --> $DIR/promoted_errors.rs:22:14
   |
LL |     let _x = 1/(1-1);
   |              ^^^^^^^ attempt to divide by zero

warning: this expression will panic at runtime
  --> $DIR/promoted_errors.rs:25:20
   |
LL |     println!("{}", 1/(false as u32));
   |                    ^^^^^^^^^^^^^^^^ attempt to divide by zero