fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.3 KiB48 linesraw
1error[E0015]: cannot call non-const formatting macro in constant functions
2  --> $DIR/format.rs:2:13
3   |
4LL |     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` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
9
10error[E0015]: cannot call non-const fn `Arguments::<'_>::new_v1` in constant functions
11  --> $DIR/format.rs:2:5
12   |
13LL |     panic!("{:?}", 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::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
18
19error[E0015]: cannot call non-const formatting macro in constant functions
20  --> $DIR/format.rs:8:15
21   |
22LL |     println!("{:?}", 0);
23   |               ^^^^
24   |
25   = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
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)
27
28error[E0015]: cannot call non-const fn `Arguments::<'_>::new_v1` in constant functions
29  --> $DIR/format.rs:8: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 `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37error[E0015]: cannot call non-const fn `_print` in constant functions
38  --> $DIR/format.rs:8:5
39   |
40LL |     println!("{:?}", 0);
41   |     ^^^^^^^^^^^^^^^^^^^
42   |
43   = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
44   = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
45
46error: aborting due to 5 previous errors
47
48For more information about this error, try `rustc --explain E0015`.