]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr
Account for method call and indexing when looking for inner-most path in expression
[rust.git] / tests / ui / did_you_mean / issue-21659-show-relevant-trait-impls-2.stderr
1 error[E0277]: the trait bound `Bar: Foo<usize>` is not satisfied
2   --> $DIR/issue-21659-show-relevant-trait-impls-2.rs:28:12
3    |
4 LL |     f1.foo(1usize);
5    |        --- ^^^^^^ the trait `Foo<usize>` is not implemented for `Bar`
6    |        |
7    |        required by a bound introduced by this call
8    |
9    = help: the following other types implement trait `Foo<A>`:
10              <Bar as Foo<i16>>
11              <Bar as Foo<i32>>
12              <Bar as Foo<i8>>
13              <Bar as Foo<u16>>
14              <Bar as Foo<u32>>
15              <Bar as Foo<u8>>
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.