rust/tests/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.stderr

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

20 lines
708 B
Plaintext
Raw Normal View History

2021-12-09 11:10:05 -06:00
error[E0015]: cannot call non-const fn `regular_in_block` in constant functions
--> $DIR/const-extern-fn-call-extern-fn.rs:9:9
|
LL | regular_in_block();
| ^^^^^^^^^^^^^^^^^^
2021-12-09 11:10:05 -06:00
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2021-12-09 11:10:05 -06:00
error[E0015]: cannot call non-const fn `regular` in constant functions
--> $DIR/const-extern-fn-call-extern-fn.rs:18:9
|
LL | regular();
| ^^^^^^^^^
2021-12-09 11:10:05 -06:00
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
error: aborting due to 2 previous errors
2020-09-17 12:32:07 -05:00
For more information about this error, try `rustc --explain E0015`.