]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/super-traits-fail.stderr
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / super-traits-fail.stderr
1 error[E0277]: the trait bound `S: ~const Foo` is not satisfied
2   --> $DIR/super-traits-fail.rs:15:12
3    |
4 LL | impl const Bar for S {}
5    |            ^^^ the trait `~const Foo` is not implemented for `S`
6    |
7 note: the trait `Foo` is implemented for `S`, but that implementation is not `const`
8   --> $DIR/super-traits-fail.rs:15:12
9    |
10 LL | impl const Bar for S {}
11    |            ^^^
12 note: required by a bound in `Bar`
13   --> $DIR/super-traits-fail.rs:8:12
14    |
15 LL | trait Bar: ~const Foo {}
16    |            ^^^^^^^^^^ required by this bound in `Bar`
17 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
18    |
19 LL | impl const Bar for S where S: ~const Foo {}
20    |                      +++++++++++++++++++
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0277`.