2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/const-closure-parse-not-item.rs:7:32
|
|
|
|
|
|
|
|
|
LL | const fn test() -> impl ~const Fn() {
|
|
|
|
| ^^^^
|
|
|
|
|
2024-03-20 11:52:54 -05:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
|
|
|
--> $DIR/const-closure-parse-not-item.rs:7:32
|
|
|
|
|
|
|
|
|
LL | const fn test() -> impl ~const Fn() {
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2023-08-13 04:02:31 -05:00
|
|
|
|