]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-32829-2.stderr
Auto merge of #83572 - pkubaj:patch-1, r=nagisa
[rust.git] / src / test / ui / consts / issue-32829-2.stderr
1 error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2   --> $DIR/issue-32829-2.rs:10:9
3    |
4 LL |         invalid();
5    |         ^^^^^^^^^
6
7 error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
8   --> $DIR/issue-32829-2.rs:32:9
9    |
10 LL |         invalid();
11    |         ^^^^^^^^^
12
13 error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
14   --> $DIR/issue-32829-2.rs:54:9
15    |
16 LL |         invalid();
17    |         ^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0015`.