fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied 2 --> $DIR/multiple-impls.rs:33:18 3 | 4LL | fn index(&self, index: Idx) -> &Self::Output; 5 | --------------------------------------------- required by `Index::index` 6... 7LL | Index::index(&[] as &[i32], 2u32); 8 | ^^^^^^^^^^^^^ trait message 9 | 10 = help: the trait `Index<u32>` is not implemented for `[i32]` 11 12error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied 13 --> $DIR/multiple-impls.rs:36:18 14 | 15LL | fn index(&self, index: Idx) -> &Self::Output; 16 | --------------------------------------------- required by `Index::index` 17... 18LL | Index::index(&[] as &[i32], Foo(2u32)); 19 | ^^^^^^^^^^^^^ on impl for Foo 20 | 21 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]` 22 23error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied 24 --> $DIR/multiple-impls.rs:39:18 25 | 26LL | fn index(&self, index: Idx) -> &Self::Output; 27 | --------------------------------------------- required by `Index::index` 28... 29LL | Index::index(&[] as &[i32], Bar(2u32)); 30 | ^^^^^^^^^^^^^ on impl for Bar 31 | 32 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]` 33 34error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied 35 --> $DIR/multiple-impls.rs:33:5 36 | 37LL | Index::index(&[] as &[i32], 2u32); 38 | ^^^^^^^^^^^^ trait message 39 | 40 = help: the trait `Index<u32>` is not implemented for `[i32]` 41 42error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied 43 --> $DIR/multiple-impls.rs:36:5 44 | 45LL | Index::index(&[] as &[i32], Foo(2u32)); 46 | ^^^^^^^^^^^^ on impl for Foo 47 | 48 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]` 49 50error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied 51 --> $DIR/multiple-impls.rs:39:5 52 | 53LL | Index::index(&[] as &[i32], Bar(2u32)); 54 | ^^^^^^^^^^^^ on impl for Bar 55 | 56 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]` 57 58error: aborting due to 6 previous errors 59 60For more information about this error, try `rustc --explain E0277`.