]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / rfc-2632-const-trait-impl / trait-where-clause.stderr
1 error[E0277]: the trait bound `T: Bar` is not satisfied
2   --> $DIR/trait-where-clause.rs:14:5
3    |
4 LL |     T::b();
5    |     ^^^^ the trait `Bar` is not implemented for `T`
6    |
7 note: required by a bound in `Foo::b`
8   --> $DIR/trait-where-clause.rs:8:24
9    |
10 LL |     fn b() where Self: ~const Bar;
11    |                        ^^^^^^^^^^ required by this bound in `Foo::b`
12 help: consider further restricting this bound
13    |
14 LL | fn test1<T: Foo + Bar>() {
15    |                 +++++
16
17 error[E0277]: the trait bound `T: Bar` is not satisfied
18   --> $DIR/trait-where-clause.rs:16:12
19    |
20 LL |     T::c::<T>();
21    |            ^ the trait `Bar` is not implemented for `T`
22    |
23 note: required by a bound in `Foo::c`
24   --> $DIR/trait-where-clause.rs:9:13
25    |
26 LL |     fn c<T: ~const Bar>();
27    |             ^^^^^^^^^^ required by this bound in `Foo::c`
28 help: consider further restricting this bound
29    |
30 LL | fn test1<T: Foo + Bar>() {
31    |                 +++++
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0277`.