]> git.proxmox.com Git - rustc.git/blob - src/test/ui/on-unimplemented/multiple-impls.stderr
New upstream version 1.58.1+dfsg1
[rustc.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
11 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
12 --> $DIR/multiple-impls.rs:36:18
13 |
14 LL | Index::index(&[] as &[i32], Foo(2u32));
15 | ------------ ^^^^^^^^^^^^^ on impl for Foo
16 | |
17 | required by a bound introduced by this call
18 |
19 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
20
21 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
22 --> $DIR/multiple-impls.rs:39:18
23 |
24 LL | Index::index(&[] as &[i32], Bar(2u32));
25 | ------------ ^^^^^^^^^^^^^ on impl for Bar
26 | |
27 | required by a bound introduced by this call
28 |
29 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
30
31 error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
32 --> $DIR/multiple-impls.rs:33:5
33 |
34 LL | Index::index(&[] as &[i32], 2u32);
35 | ^^^^^^^^^^^^ trait message
36 |
37 = help: the trait `Index<u32>` is not implemented for `[i32]`
38
39 error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
40 --> $DIR/multiple-impls.rs:36:5
41 |
42 LL | Index::index(&[] as &[i32], Foo(2u32));
43 | ^^^^^^^^^^^^ on impl for Foo
44 |
45 = help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
46
47 error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
48 --> $DIR/multiple-impls.rs:39:5
49 |
50 LL | Index::index(&[] as &[i32], Bar(2u32));
51 | ^^^^^^^^^^^^ on impl for Bar
52 |
53 = help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
54
55 error: aborting due to 6 previous errors
56
57 For more information about this error, try `rustc --explain E0277`.