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