rust/tests/ui/impl-trait/normalize-tait-in-const.stderr
2023-12-27 12:51:32 +01:00

9 lines
311 B
Plaintext

error: `~const` can only be applied to `#[const_trait]` traits
--> $DIR/normalize-tait-in-const.rs:25:42
|
LL | const fn with_positive<F: ~const for<'a> Fn(&'a Alias<'a>) + ~const Destruct>(fun: F) {
| ^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error