mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
20 lines
698 B
Plaintext
20 lines
698 B
Plaintext
error[E0015]: cannot call non-const fn `not_const` in constant functions
|
|
--> $DIR/constck.rs:6:16
|
|
|
|
|
LL | become not_const();
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
error[E0015]: cannot call non-const fn `not_const` in constant functions
|
|
--> $DIR/constck.rs:13:26
|
|
|
|
|
LL | become yes_const(not_const());
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0015`.
|