rust/src/test/ui/consts/issue-56164.stderr

16 lines
444 B
Plaintext
Raw Normal View History

error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
--> $DIR/issue-56164.rs:3:18
|
LL | const fn foo() { (||{})() }
| ^^^^^^^^
error: function pointers are not allowed in const fn
2020-09-24 23:18:49 +00:00
--> $DIR/issue-56164.rs:7:5
|
LL | input()
| ^^^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0015`.