]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/multiple-impls.stderr
Rollup merge of #76275 - FedericoPonzi:immutable-write-impl-73836, r=dtolnay
[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 |     fn index(&self, index: Idx) -> &Self::Output;
5    |     --------------------------------------------- required by `Index::index`
6 ...
7 LL |     Index::index(&[] as &[i32], 2u32);
8    |                  ^^^^^^^^^^^^^ trait message
9    |
10    = help: the trait `Index<u32>` is not implemented for `[i32]`
11
12 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
13   --> $DIR/multiple-impls.rs:36:18
14    |
15 LL |     fn index(&self, index: Idx) -> &Self::Output;
16    |     --------------------------------------------- required by `Index::index`
17 ...
18 LL |     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
23 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
24   --> $DIR/multiple-impls.rs:39:18
25    |
26 LL |     fn index(&self, index: Idx) -> &Self::Output;
27    |     --------------------------------------------- required by `Index::index`
28 ...
29 LL |     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
34 error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
35   --> $DIR/multiple-impls.rs:33:5
36    |
37 LL |     Index::index(&[] as &[i32], 2u32);
38    |     ^^^^^^^^^^^^ trait message
39    |
40    = help: the trait `Index<u32>` is not implemented for `[i32]`
41
42 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
43   --> $DIR/multiple-impls.rs:36:5
44    |
45 LL |     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
50 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
51   --> $DIR/multiple-impls.rs:39:5
52    |
53 LL |     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
58 error: aborting due to 6 previous errors
59
60 For more information about this error, try `rustc --explain E0277`.