summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.ny.stderr
blob: 97f346e8c1dba25587f3c523bb1d31a654e519ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: ~const can only be applied to `#[const_trait]` traits
  --> $DIR/super-traits-fail-2.rs:11:19
   |
LL | trait Bar: ~const Foo {}
   |                   ^^^

error: ~const can only be applied to `#[const_trait]` traits
  --> $DIR/super-traits-fail-2.rs:11:19
   |
LL | trait Bar: ~const Foo {}
   |                   ^^^

error: aborting due to 2 previous errors