mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
528 B
Text
16 lines
528 B
Text
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() {
|
|
| ^^^^
|
|
|
|
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
|
|
|