2024-06-21 12:22:29 +00:00
|
|
|
warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
|
|
|
--> $DIR/const-bounds-non-const-trait.rs:2:30
|
|
|
|
|
|
|
|
|
|
|
LL | #![feature(const_trait_impl, effects)]
|
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
|
|
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-bounds-non-const-trait.rs:6:21
|
2023-12-18 17:55:55 +01:00
|
|
|
|
|
|
|
|
|
LL | const fn perform<T: ~const NonConst>() {}
|
2024-10-26 20:54:38 +00:00
|
|
|
| ^^^^^^
|
2023-12-18 17:55:55 +01:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-10-26 20:54:38 +00:00
|
|
|
--> $DIR/const-bounds-non-const-trait.rs:6:21
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
|
|
|
|
LL | const fn perform<T: ~const NonConst>() {}
|
2024-10-26 20:54:38 +00:00
|
|
|
| ^^^^^^
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
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-bounds-non-const-trait.rs:10:15
|
2023-12-18 17:55:55 +01:00
|
|
|
|
|
|
|
|
|
LL | fn operate<T: const NonConst>() {}
|
2024-10-26 20:54:38 +00:00
|
|
|
| ^^^^^
|
2023-12-18 17:55:55 +01:00
|
|
|
|
2024-10-22 03:22:57 +00:00
|
|
|
error: aborting due to 3 previous errors; 1 warning emitted
|
2023-12-18 17:55:55 +01:00
|
|
|
|