fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
707 B20 linesraw
1error[E0277]: the trait bound `X: Foo<X>` is not satisfied
2  --> $DIR/where-clause-method-substituion.rs:20:16
3   |
4LL |     1.method::<X>();
5   |                ^ the trait `Foo<X>` is not implemented for `X`
6   |
7help: this trait has no implementations, consider adding one
8  --> $DIR/where-clause-method-substituion.rs:1:1
9   |
10LL | trait Foo<T> {
11   | ^^^^^^^^^^^^
12note: required by a bound in `Bar::method`
13  --> $DIR/where-clause-method-substituion.rs:6:34
14   |
15LL |     fn method<B>(&self) where A: Foo<B>;
16   |                                  ^^^^^^ required by this bound in `Bar::method`
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0277`.