rust/tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
371 B
Plaintext
Raw Normal View History

2023-11-11 15:01:58 +01:00
error: `~const` is not allowed here
--> $DIR/super-traits-fail-2.rs:11:12
|
2023-11-11 15:01:58 +01:00
LL | trait Bar: ~const Foo {}
| ^^^^^^^^^^
|
2023-11-11 15:01:58 +01:00
note: this trait is not a `#[const_trait]`, so it cannot have `~const` trait bounds
--> $DIR/super-traits-fail-2.rs:11:1
|
LL | trait Bar: ~const Foo {}
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error