fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied 2 --> $DIR/multiple-impls.rs:33:33 3 | 4LL | Index::index(&[] as &[i32], 2u32); 5 | ------------ ^^^^ trait message 6 | | 7 | required by a bound introduced by this call 8 | 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<Foo<usize>>> 12 <[i32] as Index<Bar<usize>>> 13 14error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied 15 --> $DIR/multiple-impls.rs:33:5 16 | 17LL | Index::index(&[] as &[i32], 2u32); 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait message 19 | 20 = help: the trait `Index<u32>` is not implemented for `[i32]` 21 = help: the following other types implement trait `Index<Idx>`: 22 <[i32] as Index<Foo<usize>>> 23 <[i32] as Index<Bar<usize>>> 24 25error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied 26 --> $DIR/multiple-impls.rs:37:33 27 | 28LL | Index::index(&[] as &[i32], Foo(2u32)); 29 | ------------ ^^^^^^^^^ on impl for Foo 30 | | 31 | required by a bound introduced by this call 32 | 33 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]` 34 = help: the following other types implement trait `Index<Idx>`: 35 <[i32] as Index<Foo<usize>>> 36 <[i32] as Index<Bar<usize>>> 37 38error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied 39 --> $DIR/multiple-impls.rs:37:5 40 | 41LL | Index::index(&[] as &[i32], Foo(2u32)); 42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ on impl for Foo 43 | 44 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]` 45 = help: the following other types implement trait `Index<Idx>`: 46 <[i32] as Index<Foo<usize>>> 47 <[i32] as Index<Bar<usize>>> 48 49error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied 50 --> $DIR/multiple-impls.rs:41:33 51 | 52LL | Index::index(&[] as &[i32], Bar(2u32)); 53 | ------------ ^^^^^^^^^ on impl for Bar 54 | | 55 | required by a bound introduced by this call 56 | 57 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]` 58 = help: the following other types implement trait `Index<Idx>`: 59 <[i32] as Index<Foo<usize>>> 60 <[i32] as Index<Bar<usize>>> 61 62error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied 63 --> $DIR/multiple-impls.rs:41:5 64 | 65LL | Index::index(&[] as &[i32], Bar(2u32)); 66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ on impl for Bar 67 | 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<Foo<usize>>> 71 <[i32] as Index<Bar<usize>>> 72 73error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied 74 --> $DIR/multiple-impls.rs:33:5 75 | 76LL | Index::index(&[] as &[i32], 2u32); 77 | ^^^^^^^^^^^^ trait message 78 | 79 = help: the trait `Index<u32>` is not implemented for `[i32]` 80 = help: the following other types implement trait `Index<Idx>`: 81 <[i32] as Index<Foo<usize>>> 82 <[i32] as Index<Bar<usize>>> 83 84error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied 85 --> $DIR/multiple-impls.rs:37:5 86 | 87LL | Index::index(&[] as &[i32], Foo(2u32)); 88 | ^^^^^^^^^^^^ on impl for Foo 89 | 90 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]` 91 = help: the following other types implement trait `Index<Idx>`: 92 <[i32] as Index<Foo<usize>>> 93 <[i32] as Index<Bar<usize>>> 94 95error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied 96 --> $DIR/multiple-impls.rs:41:5 97 | 98LL | Index::index(&[] as &[i32], Bar(2u32)); 99 | ^^^^^^^^^^^^ on impl for Bar 100 | 101 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]` 102 = help: the following other types implement trait `Index<Idx>`: 103 <[i32] as Index<Foo<usize>>> 104 <[i32] as Index<Bar<usize>>> 105 106error: aborting due to 9 previous errors 107 108For more information about this error, try `rustc --explain E0277`.