rust/tests/ui/rfcs/rfc-2632-const-trait-impl/issue-102985.stderr

12 lines
350 B
Plaintext
Raw Normal View History

2022-10-19 23:19:54 -05:00
error[E0015]: cannot call non-const closure in constants
2023-07-27 10:51:02 -05:00
--> $DIR/issue-102985.rs:6:14
|
LL | n => n(),
| ^^^
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
2023-07-27 10:51:02 -05:00
error: aborting due to previous error
2023-07-27 10:51:02 -05:00
For more information about this error, try `rustc --explain E0015`.