2023-12-18 17:55:55 +01:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-10-26 20:54:38 +00:00
|
|
|
--> $DIR/const-closure-parse-not-item.rs:7:25
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
|
LL | const fn test() -> impl ~const Fn() {
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
|
|
|
|
|
|
|
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2024-03-20 12:52:54 -04:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-10-26 20:54:38 +00:00
|
|
|
--> $DIR/const-closure-parse-not-item.rs:7:25
|
2024-03-20 12:52:54 -04:00
|
|
|
|
|
|
|
|
|
LL | const fn test() -> impl ~const Fn() {
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
2024-03-20 12:52:54 -04:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2024-03-20 12:52:54 -04:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
2024-11-19 20:29:01 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
|
|
|
|
--> $DIR/const-closure-parse-not-item.rs:7:25
|
|
|
|
|
|
|
|
|
|
|
LL | const fn test() -> impl ~const Fn() {
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
2024-11-19 20:29:01 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2024-11-19 20:29:01 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2023-08-13 09:02:31 +00:00
|
|
|
|