]> git.lizzy.rs Git - rust.git/blob - tests/ui/where-clauses/where-clause-method-substituion.stderr
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / where-clauses / where-clause-method-substituion.stderr
1 error[E0277]: the trait bound `X: Foo<X>` is not satisfied
2   --> $DIR/where-clause-method-substituion.rs:20:16
3    |
4 LL |     1.method::<X>();
5    |                ^ the trait `Foo<X>` is not implemented for `X`
6    |
7 note: required by a bound in `Bar::method`
8   --> $DIR/where-clause-method-substituion.rs:6:34
9    |
10 LL |     fn method<B>(&self) where A: Foo<B>;
11    |                                  ^^^^^^ required by this bound in `Bar::method`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.