fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
667 B21 linesraw
1error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2  --> $DIR/issue-32829-2.rs:12:9
3   |
4LL |         invalid();
5   |         ^^^^^^^^^
6
7error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
8  --> $DIR/issue-32829-2.rs:34:9
9   |
10LL |         invalid();
11   |         ^^^^^^^^^
12
13error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
14  --> $DIR/issue-32829-2.rs:56:9
15   |
16LL |         invalid();
17   |         ^^^^^^^^^
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0015`.