]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/miri_unleashed/non_const_fn.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / consts / miri_unleashed / non_const_fn.stderr
CommitLineData
e74abb32 1warning: skipping const checks
dfeec247 2 --> $DIR/non_const_fn.rs:10:15
e74abb32
XL
3 |
4LL | const C: () = foo();
5 | ^^^^^
6
7warning: any use of this value will cause an error
dfeec247 8 --> $DIR/non_const_fn.rs:10:15
e74abb32
XL
9 |
10LL | const C: () = foo();
11 | --------------^^^^^-
12 | |
13 | calling non-const function `foo`
14 |
74b04a01 15note: the lint level is defined here
dfeec247 16 --> $DIR/non_const_fn.rs:4:9
e74abb32
XL
17 |
18LL | #![warn(const_err)]
19 | ^^^^^^^^^
20
21error[E0080]: evaluation of constant expression failed
dfeec247
XL
22 --> $DIR/non_const_fn.rs:14:22
23 |
24LL | println!("{:?}", C);
25 | ^ referenced constant has errors
26
27warning: erroneous constant used
28 --> $DIR/non_const_fn.rs:14:22
e74abb32
XL
29 |
30LL | println!("{:?}", C);
31 | ^ referenced constant has errors
32
ba9703b0 33error: aborting due to previous error; 3 warnings emitted
e74abb32
XL
34
35For more information about this error, try `rustc --explain E0080`.