rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const-bounds-non-const-trait.stderr
2023-12-27 12:51:32 +01:00

15 lines
437 B
Plaintext

error: `~const` can only be applied to `#[const_trait]` traits
--> $DIR/const-bounds-non-const-trait.rs:6:28
|
LL | const fn perform<T: ~const NonConst>() {}
| ^^^^^^^^
error: `const` can only be applied to `#[const_trait]` traits
--> $DIR/const-bounds-non-const-trait.rs:9:21
|
LL | fn operate<T: const NonConst>() {}
| ^^^^^^^^
error: aborting due to 2 previous errors