]>
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 | |
11 | --> $DIR/format.rs:11:22 | |
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 | |
20 | --> $DIR/format.rs:11:5 | |
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 | |
29 | --> $DIR/format.rs:11:5 | |
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 | ||
37 | error: erroneous constant used | |
38 | --> $DIR/format.rs:2:12 | |
39 | | | |
40 | LL | panic!("{:?}", 0); | |
41 | | ^^^^^^ referenced constant has errors | |
42 | | | |
43 | = note: `#[deny(const_err)]` on by default | |
44 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
45 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
46 | ||
47 | error: erroneous constant used | |
48 | --> $DIR/format.rs:2:20 | |
49 | | | |
50 | LL | panic!("{:?}", 0); | |
51 | | ^ referenced constant has errors | |
52 | | | |
53 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
54 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
064997fb | 55 | = 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 |
56 | |
57 | error: erroneous constant used | |
58 | --> $DIR/format.rs:11:14 | |
59 | | | |
60 | LL | println!("{:?}", 0); | |
61 | | ^^^^^^ referenced constant has errors | |
62 | | | |
63 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
64 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
65 | ||
66 | error: erroneous constant used | |
67 | --> $DIR/format.rs:11:22 | |
68 | | | |
69 | LL | println!("{:?}", 0); | |
70 | | ^ referenced constant has errors | |
71 | | | |
72 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
73 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
064997fb | 74 | = 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 |
75 | |
76 | error: aborting due to 8 previous errors | |
77 | ||
78 | For more information about this error, try `rustc --explain E0015`. | |
064997fb FG |
79 | Future incompatibility report: Future breakage diagnostic: |
80 | error: erroneous constant used | |
81 | --> $DIR/format.rs:2:12 | |
82 | | | |
83 | LL | panic!("{:?}", 0); | |
84 | | ^^^^^^ referenced constant has errors | |
85 | | | |
86 | = note: `#[deny(const_err)]` on by default | |
87 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
88 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
89 | ||
90 | Future breakage diagnostic: | |
91 | error: erroneous constant used | |
92 | --> $DIR/format.rs:2:20 | |
93 | | | |
94 | LL | panic!("{:?}", 0); | |
95 | | ^ referenced constant has errors | |
96 | | | |
97 | = note: `#[deny(const_err)]` on by default | |
98 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
99 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
100 | = 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) | |
101 | ||
102 | Future breakage diagnostic: | |
103 | error: erroneous constant used | |
104 | --> $DIR/format.rs:11:14 | |
105 | | | |
106 | LL | println!("{:?}", 0); | |
107 | | ^^^^^^ referenced constant has errors | |
108 | | | |
109 | = note: `#[deny(const_err)]` on by default | |
110 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
111 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
112 | ||
113 | Future breakage diagnostic: | |
114 | error: erroneous constant used | |
115 | --> $DIR/format.rs:11:22 | |
116 | | | |
117 | LL | println!("{:?}", 0); | |
118 | | ^ referenced constant has errors | |
119 | | | |
120 | = note: `#[deny(const_err)]` on by default | |
121 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
122 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
123 | = 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) | |
124 |