]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/format.stderr
New upstream version 1.64.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
11 --> $DIR/format.rs:11:22
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
20 --> $DIR/format.rs:11:5
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
29 --> $DIR/format.rs:11:5
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
37error: erroneous constant used
38 --> $DIR/format.rs:2:12
39 |
40LL | 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
47error: erroneous constant used
48 --> $DIR/format.rs:2:20
49 |
50LL | 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
57error: erroneous constant used
58 --> $DIR/format.rs:11:14
59 |
60LL | 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
66error: erroneous constant used
67 --> $DIR/format.rs:11:22
68 |
69LL | 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
76error: aborting due to 8 previous errors
77
78For more information about this error, try `rustc --explain E0015`.
064997fb
FG
79Future incompatibility report: Future breakage diagnostic:
80error: erroneous constant used
81 --> $DIR/format.rs:2:12
82 |
83LL | 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
90Future breakage diagnostic:
91error: erroneous constant used
92 --> $DIR/format.rs:2:20
93 |
94LL | 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
102Future breakage diagnostic:
103error: erroneous constant used
104 --> $DIR/format.rs:11:14
105 |
106LL | 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
113Future breakage diagnostic:
114error: erroneous constant used
115 --> $DIR/format.rs:11:22
116 |
117LL | 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