]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-32829-2.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / issue-32829-2.stderr
1 error[E0015]: cannot call non-const fn `invalid` in constants
2   --> $DIR/issue-32829-2.rs:10:9
3    |
4 LL |         invalid();
5    |         ^^^^^^^^^
6    |
7    = note: calls in constants are limited to constant functions, tuple structs and tuple variants
8
9 error[E0015]: cannot call non-const fn `invalid` in statics
10   --> $DIR/issue-32829-2.rs:32:9
11    |
12 LL |         invalid();
13    |         ^^^^^^^^^
14    |
15    = note: calls in statics are limited to constant functions, tuple structs and tuple variants
16
17 error[E0015]: cannot call non-const fn `invalid` in statics
18   --> $DIR/issue-32829-2.rs:54:9
19    |
20 LL |         invalid();
21    |         ^^^^^^^^^
22    |
23    = note: calls in statics are limited to constant functions, tuple structs and tuple variants
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0015`.