@@ -15,11 +15,10 @@ error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
15
15
--> $DIR/multiple-impls.rs:36:33
16
16
|
17
17
LL | Index::index(&[] as &[i32], Foo(2u32));
18
- | ------------ ^^^^^^^^^ on impl for Foo
18
+ | ------------ ^^^^^^^^^ the trait `Index<Foo<u32>>` is not implemented for `[i32]`
19
19
| |
20
20
| required by a bound introduced by this call
21
21
|
22
- = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
23
22
= help: the following other types implement trait `Index<Idx>`:
24
23
`[i32]` implements `Index<Bar<usize>>`
25
24
`[i32]` implements `Index<Foo<usize>>`
@@ -28,11 +27,10 @@ error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
28
27
--> $DIR/multiple-impls.rs:39:33
29
28
|
30
29
LL | Index::index(&[] as &[i32], Bar(2u32));
31
- | ------------ ^^^^^^^^^ on impl for Bar
30
+ | ------------ ^^^^^^^^^ the trait `Index<Bar<u32>>` is not implemented for `[i32]`
32
31
| |
33
32
| required by a bound introduced by this call
34
33
|
35
- = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
36
34
= help: the following other types implement trait `Index<Idx>`:
37
35
`[i32]` implements `Index<Bar<usize>>`
38
36
`[i32]` implements `Index<Foo<usize>>`
@@ -52,9 +50,8 @@ error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
52
50
--> $DIR/multiple-impls.rs:36:5
53
51
|
54
52
LL | Index::index(&[] as &[i32], Foo(2u32));
55
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ on impl for Foo
53
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Index<Foo<u32>>` is not implemented for `[i32]`
56
54
|
57
- = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
58
55
= help: the following other types implement trait `Index<Idx>`:
59
56
`[i32]` implements `Index<Bar<usize>>`
60
57
`[i32]` implements `Index<Foo<usize>>`
@@ -63,9 +60,8 @@ error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
63
60
--> $DIR/multiple-impls.rs:39:5
64
61
|
65
62
LL | Index::index(&[] as &[i32], Bar(2u32));
66
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ on impl for Bar
63
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Index<Bar<u32>>` is not implemented for `[i32]`
67
64
|
68
- = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
69
65
= help: the following other types implement trait `Index<Idx>`:
70
66
`[i32]` implements `Index<Bar<usize>>`
71
67
`[i32]` implements `Index<Foo<usize>>`
0 commit comments