]>
Commit | Line | Data |
---|---|---|
923072b8 FG |
1 | error[E0015]: cannot call non-const formatting macro in constant functions |
2 | --> $DIR/format.rs:2:20 | |
3 | | | |
4 | LL | 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 | |
10 | error[E0015]: cannot call non-const formatting macro in constant functions | |
2b03887a | 11 | --> $DIR/format.rs:9:22 |
923072b8 FG |
12 | | |
13 | LL | 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 | |
19 | error: `Arguments::<'a>::new_v1` is not yet stable as a const fn | |
2b03887a | 20 | --> $DIR/format.rs:9:5 |
923072b8 FG |
21 | | |
22 | LL | 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 | |
28 | error[E0015]: cannot call non-const fn `_print` in constant functions | |
2b03887a | 29 | --> $DIR/format.rs:9:5 |
923072b8 FG |
30 | | |
31 | LL | 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 | 37 | error[E0080]: erroneous constant used |
923072b8 FG |
38 | --> $DIR/format.rs:2:12 |
39 | | | |
40 | LL | panic!("{:?}", 0); | |
41 | | ^^^^^^ referenced constant has errors | |
923072b8 | 42 | |
2b03887a | 43 | error[E0080]: erroneous constant used |
923072b8 FG |
44 | --> $DIR/format.rs:2:20 |
45 | | | |
46 | LL | 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 |
51 | error[E0080]: erroneous constant used |
52 | --> $DIR/format.rs:9:14 | |
923072b8 FG |
53 | | |
54 | LL | println!("{:?}", 0); | |
55 | | ^^^^^^ referenced constant has errors | |
923072b8 | 56 | |
2b03887a FG |
57 | error[E0080]: erroneous constant used |
58 | --> $DIR/format.rs:9:22 | |
923072b8 FG |
59 | | |
60 | LL | 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 | |
65 | error: aborting due to 8 previous errors | |
66 | ||
2b03887a FG |
67 | Some errors have detailed explanations: E0015, E0080. |
68 | For more information about an error, try `rustc --explain E0015`. |