1 error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
2 --> $DIR/multiple-impls.rs:33:18
4 LL | Index::index(&[] as &[i32], 2u32);
5 | ------------ ^^^^^^^^^^^^^ trait message
7 | required by a bound introduced by this call
9 = help: the trait `Index<u32>` is not implemented for `[i32]`
10 = help: the following other types implement trait `Index<Idx>`:
11 <[i32] as Index<Bar<usize>>>
12 <[i32] as Index<Foo<usize>>>
14 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
15 --> $DIR/multiple-impls.rs:36:18
17 LL | Index::index(&[] as &[i32], Foo(2u32));
18 | ------------ ^^^^^^^^^^^^^ on impl for Foo
20 | required by a bound introduced by this call
22 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
23 = help: the following other types implement trait `Index<Idx>`:
24 <[i32] as Index<Bar<usize>>>
25 <[i32] as Index<Foo<usize>>>
27 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
28 --> $DIR/multiple-impls.rs:39:18
30 LL | Index::index(&[] as &[i32], Bar(2u32));
31 | ------------ ^^^^^^^^^^^^^ on impl for Bar
33 | required by a bound introduced by this call
35 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
36 = help: the following other types implement trait `Index<Idx>`:
37 <[i32] as Index<Bar<usize>>>
38 <[i32] as Index<Foo<usize>>>
40 error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
41 --> $DIR/multiple-impls.rs:33:5
43 LL | Index::index(&[] as &[i32], 2u32);
44 | ^^^^^^^^^^^^ trait message
46 = help: the trait `Index<u32>` is not implemented for `[i32]`
47 = help: the following other types implement trait `Index<Idx>`:
48 <[i32] as Index<Bar<usize>>>
49 <[i32] as Index<Foo<usize>>>
51 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
52 --> $DIR/multiple-impls.rs:36:5
54 LL | Index::index(&[] as &[i32], Foo(2u32));
55 | ^^^^^^^^^^^^ on impl for Foo
57 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
58 = help: the following other types implement trait `Index<Idx>`:
59 <[i32] as Index<Bar<usize>>>
60 <[i32] as Index<Foo<usize>>>
62 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
63 --> $DIR/multiple-impls.rs:39:5
65 LL | Index::index(&[] as &[i32], Bar(2u32));
66 | ^^^^^^^^^^^^ on impl for Bar
68 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
69 = help: the following other types implement trait `Index<Idx>`:
70 <[i32] as Index<Bar<usize>>>
71 <[i32] as Index<Foo<usize>>>
73 error: aborting due to 6 previous errors
75 For more information about this error, try `rustc --explain E0277`.