blob: e465ebaffa84eeaba7fa454c822fb9b1c57fe7c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error: `~const` is not allowed here
--> $DIR/super-traits-fail-2.rs:11:12
|
LL | trait Bar: ~const Foo {}
| ^^^^^^
|
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 1 previous error
|