1 error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
2 --> $DIR/multiple-impls.rs:33:18
4 LL | fn index(&self, index: Idx) -> &Self::Output;
5 | --------------------------------------------- required by `Index::index`
7 LL | Index::index(&[] as &[i32], 2u32);
8 | ^^^^^^^^^^^^^ trait message
10 = help: the trait `Index<u32>` is not implemented for `[i32]`
12 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
13 --> $DIR/multiple-impls.rs:36:18
15 LL | fn index(&self, index: Idx) -> &Self::Output;
16 | --------------------------------------------- required by `Index::index`
18 LL | Index::index(&[] as &[i32], Foo(2u32));
19 | ^^^^^^^^^^^^^ on impl for Foo
21 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
23 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
24 --> $DIR/multiple-impls.rs:39:18
26 LL | fn index(&self, index: Idx) -> &Self::Output;
27 | --------------------------------------------- required by `Index::index`
29 LL | Index::index(&[] as &[i32], Bar(2u32));
30 | ^^^^^^^^^^^^^ on impl for Bar
32 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
34 error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
35 --> $DIR/multiple-impls.rs:33:5
37 LL | Index::index(&[] as &[i32], 2u32);
38 | ^^^^^^^^^^^^ trait message
40 = help: the trait `Index<u32>` is not implemented for `[i32]`
42 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
43 --> $DIR/multiple-impls.rs:36:5
45 LL | Index::index(&[] as &[i32], Foo(2u32));
46 | ^^^^^^^^^^^^ on impl for Foo
48 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
50 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
51 --> $DIR/multiple-impls.rs:39:5
53 LL | Index::index(&[] as &[i32], Bar(2u32));
54 | ^^^^^^^^^^^^ on impl for Bar
56 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
58 error: aborting due to 6 previous errors
60 For more information about this error, try `rustc --explain E0277`.