]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/format.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / format.stderr
CommitLineData
923072b8
FG
1error[E0015]: cannot call non-const formatting macro in constant functions
2 --> $DIR/format.rs:2:20
3 |
4LL | panic!("{:?}", 0);
5 | ^
6 |
7 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
064997fb 8 = note: this error originates in the macro `$crate::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
923072b8
FG
9
10error[E0015]: cannot call non-const formatting macro in constant functions
2b03887a 11 --> $DIR/format.rs:9:22
923072b8
FG
12 |
13LL | println!("{:?}", 0);
14 | ^
15 |
16 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
064997fb 17 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
923072b8
FG
18
19error: `Arguments::<'a>::new_v1` is not yet stable as a const fn
2b03887a 20 --> $DIR/format.rs:9:5
923072b8
FG
21 |
22LL | println!("{:?}", 0);
23 | ^^^^^^^^^^^^^^^^^^^
24 |
25 = help: add `#![feature(const_fmt_arguments_new)]` to the crate attributes to enable
064997fb 26 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
923072b8
FG
27
28error[E0015]: cannot call non-const fn `_print` in constant functions
2b03887a 29 --> $DIR/format.rs:9:5
923072b8
FG
30 |
31LL | println!("{:?}", 0);
32 | ^^^^^^^^^^^^^^^^^^^
33 |
34 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
35 = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
36
2b03887a 37error[E0080]: erroneous constant used
923072b8
FG
38 --> $DIR/format.rs:2:12
39 |
40LL | panic!("{:?}", 0);
41 | ^^^^^^ referenced constant has errors
923072b8 42
2b03887a 43error[E0080]: erroneous constant used
923072b8
FG
44 --> $DIR/format.rs:2:20
45 |
46LL | panic!("{:?}", 0);
47 | ^ referenced constant has errors
48 |
064997fb 49 = note: this error originates in the macro `$crate::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
923072b8 50
2b03887a
FG
51error[E0080]: erroneous constant used
52 --> $DIR/format.rs:9:14
923072b8
FG
53 |
54LL | println!("{:?}", 0);
55 | ^^^^^^ referenced constant has errors
923072b8 56
2b03887a
FG
57error[E0080]: erroneous constant used
58 --> $DIR/format.rs:9:22
923072b8
FG
59 |
60LL | println!("{:?}", 0);
61 | ^ referenced constant has errors
62 |
064997fb 63 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
923072b8
FG
64
65error: aborting due to 8 previous errors
66
2b03887a
FG
67Some errors have detailed explanations: E0015, E0080.
68For more information about an error, try `rustc --explain E0015`.