]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/multiple-impls.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / on-unimplemented / multiple-impls.stderr
1 error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
2   --> $DIR/multiple-impls.rs:33:18
3    |
4 LL |     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<Bar<usize>>>
12              <[i32] as Index<Foo<usize>>>
13
14 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
15   --> $DIR/multiple-impls.rs:36:18
16    |
17 LL |     Index::index(&[] as &[i32], Foo(2u32));
18    |     ------------ ^^^^^^^^^^^^^ on impl for Foo
19    |     |
20    |     required by a bound introduced by this call
21    |
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>>>
26
27 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
28   --> $DIR/multiple-impls.rs:39:18
29    |
30 LL |     Index::index(&[] as &[i32], Bar(2u32));
31    |     ------------ ^^^^^^^^^^^^^ on impl for Bar
32    |     |
33    |     required by a bound introduced by this call
34    |
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>>>
39
40 error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
41   --> $DIR/multiple-impls.rs:33:5
42    |
43 LL |     Index::index(&[] as &[i32], 2u32);
44    |     ^^^^^^^^^^^^ trait message
45    |
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>>>
50
51 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
52   --> $DIR/multiple-impls.rs:36:5
53    |
54 LL |     Index::index(&[] as &[i32], Foo(2u32));
55    |     ^^^^^^^^^^^^ on impl for Foo
56    |
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>>>
61
62 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
63   --> $DIR/multiple-impls.rs:39:5
64    |
65 LL |     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<Bar<usize>>>
71              <[i32] as Index<Foo<usize>>>
72
73 error: aborting due to 6 previous errors
74
75 For more information about this error, try `rustc --explain E0277`.