summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/super-traits-fail.stderr
blob: bf12ef1ca77dfa9b0138f5f6000c4bb793c6bb39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0277]: the trait bound `S: ~const Foo` is not satisfied
  --> $DIR/super-traits-fail.rs:15:20
   |
LL | impl const Bar for S {}
   |                    ^ the trait `~const Foo` is not implemented for `S`
   |
note: the trait `Foo` is implemented for `S`, but that implementation is not `const`
  --> $DIR/super-traits-fail.rs:15:20
   |
LL | impl const Bar for S {}
   |                    ^
note: required by a bound in `Bar`
  --> $DIR/super-traits-fail.rs:8:12
   |
LL | trait Bar: ~const Foo {}
   |            ^^^^^^^^^^ required by this bound in `Bar`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.