]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-eval/promoted_errors.stderr
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / ui / const-eval / promoted_errors.stderr
CommitLineData
94b46f34 1warning: this expression will panic at runtime
0531ce1d
XL
2 --> $DIR/promoted_errors.rs:17:14
3 |
4LL | let _x = 0u32 - 1;
83c7162d 5 | ^^^^^^^^ attempt to subtract with overflow
94b46f34
XL
6 |
7note: lint level defined here
8 --> $DIR/promoted_errors.rs:11:9
9 |
10LL | #![warn(const_err)]
11 | ^^^^^^^^^
0531ce1d
XL
12
13warning: attempt to divide by zero
14 --> $DIR/promoted_errors.rs:19:20
15 |
16LL | println!("{}", 1/(1-1));
17 | ^^^^^^^
18
94b46f34 19warning: this expression will panic at runtime
0531ce1d
XL
20 --> $DIR/promoted_errors.rs:19:20
21 |
22LL | println!("{}", 1/(1-1));
83c7162d 23 | ^^^^^^^ attempt to divide by zero
0531ce1d
XL
24
25warning: attempt to divide by zero
26 --> $DIR/promoted_errors.rs:22:14
27 |
28LL | let _x = 1/(1-1);
29 | ^^^^^^^
30
94b46f34 31warning: this expression will panic at runtime
0531ce1d
XL
32 --> $DIR/promoted_errors.rs:22:14
33 |
34LL | let _x = 1/(1-1);
83c7162d 35 | ^^^^^^^ attempt to divide by zero
0531ce1d 36
94b46f34 37warning: this expression will panic at runtime
0531ce1d
XL
38 --> $DIR/promoted_errors.rs:25:20
39 |
40LL | println!("{}", 1/(false as u32));
83c7162d 41 | ^^^^^^^^^^^^^^^^ attempt to divide by zero
0531ce1d 42