|
| 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 |
| 8 | + = note: this error originates in the macro `$crate::const_format_args` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 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 |
| 17 | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 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 |
| 26 | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 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> |
| 55 | + = note: this error originates in the macro `$crate::const_format_args` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 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> |
| 74 | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 75 | + |
| 76 | +error: aborting due to 8 previous errors |
| 77 | + |
| 78 | +For more information about this error, try `rustc --explain E0015`. |
0 commit comments