rust/tests/ui/consts/control-flow/issue-46843.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
398 B
Plaintext
Raw Normal View History

2021-12-10 01:10:05 +08:00
error[E0015]: cannot call non-const fn `non_const` in constants
2020-05-21 12:49:38 -07:00
--> $DIR/issue-46843.rs:10:26
|
LL | pub const Q: i32 = match non_const() {
| ^^^^^^^^^^^
2021-12-10 01:10:05 +08:00
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
error: aborting due to previous error
For more information about this error, try `rustc --explain E0015`.