]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/mismatching_type_param_order.stderr
Rollup merge of #99474 - aDotInTheVoid:rustdoc-json-noinline-test-cleanup, r=CraftSpider
[rust.git] / src / tools / clippy / tests / ui / mismatching_type_param_order.stderr
1 error: `Foo` has a similarly named generic type parameter `B` in its declaration, but in a different order
2   --> $DIR/mismatching_type_param_order.rs:11:20
3    |
4 LL |     impl<B, A> Foo<B, A> {}
5    |                    ^
6    |
7    = note: `-D clippy::mismatching-type-param-order` implied by `-D warnings`
8    = help: try `A`, or a name that does not conflict with `Foo`'s generic params
9
10 error: `Foo` has a similarly named generic type parameter `A` in its declaration, but in a different order
11   --> $DIR/mismatching_type_param_order.rs:11:23
12    |
13 LL |     impl<B, A> Foo<B, A> {}
14    |                       ^
15    |
16    = help: try `B`, or a name that does not conflict with `Foo`'s generic params
17
18 error: `Foo` has a similarly named generic type parameter `A` in its declaration, but in a different order
19   --> $DIR/mismatching_type_param_order.rs:14:23
20    |
21 LL |     impl<C, A> Foo<C, A> {}
22    |                       ^
23    |
24    = help: try `B`, or a name that does not conflict with `Foo`'s generic params
25
26 error: `FooLifetime` has a similarly named generic type parameter `B` in its declaration, but in a different order
27   --> $DIR/mismatching_type_param_order.rs:25:44
28    |
29 LL |     impl<'m, 'l, B, A> FooLifetime<'m, 'l, B, A> {}
30    |                                            ^
31    |
32    = help: try `A`, or a name that does not conflict with `FooLifetime`'s generic params
33
34 error: `FooLifetime` has a similarly named generic type parameter `A` in its declaration, but in a different order
35   --> $DIR/mismatching_type_param_order.rs:25:47
36    |
37 LL |     impl<'m, 'l, B, A> FooLifetime<'m, 'l, B, A> {}
38    |                                               ^
39    |
40    = help: try `B`, or a name that does not conflict with `FooLifetime`'s generic params
41
42 error: `FooEnum` has a similarly named generic type parameter `C` in its declaration, but in a different order
43   --> $DIR/mismatching_type_param_order.rs:41:27
44    |
45 LL |     impl<C, A, B> FooEnum<C, A, B> {}
46    |                           ^
47    |
48    = help: try `A`, or a name that does not conflict with `FooEnum`'s generic params
49
50 error: `FooEnum` has a similarly named generic type parameter `A` in its declaration, but in a different order
51   --> $DIR/mismatching_type_param_order.rs:41:30
52    |
53 LL |     impl<C, A, B> FooEnum<C, A, B> {}
54    |                              ^
55    |
56    = help: try `B`, or a name that does not conflict with `FooEnum`'s generic params
57
58 error: `FooEnum` has a similarly named generic type parameter `B` in its declaration, but in a different order
59   --> $DIR/mismatching_type_param_order.rs:41:33
60    |
61 LL |     impl<C, A, B> FooEnum<C, A, B> {}
62    |                                 ^
63    |
64    = help: try `C`, or a name that does not conflict with `FooEnum`'s generic params
65
66 error: `FooUnion` has a similarly named generic type parameter `B` in its declaration, but in a different order
67   --> $DIR/mismatching_type_param_order.rs:52:31
68    |
69 LL |     impl<B: Copy, A> FooUnion<B, A> where A: Copy {}
70    |                               ^
71    |
72    = help: try `A`, or a name that does not conflict with `FooUnion`'s generic params
73
74 error: `FooUnion` has a similarly named generic type parameter `A` in its declaration, but in a different order
75   --> $DIR/mismatching_type_param_order.rs:52:34
76    |
77 LL |     impl<B: Copy, A> FooUnion<B, A> where A: Copy {}
78    |                                  ^
79    |
80    = help: try `B`, or a name that does not conflict with `FooUnion`'s generic params
81
82 error: aborting due to 10 previous errors
83