rust/tests/ui/explicit-tail-calls/constck.stderr

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

20 lines
698 B
Plaintext
Raw Normal View History

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`.