summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/mismatching_type_param_order.stderr
blob: 204d4990557740d6d628fa4290f0445ec6947132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
error: `Foo` has a similarly named generic type parameter `B` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:11:20
   |
LL |     impl<B, A> Foo<B, A> {}
   |                    ^
   |
   = help: try `A`, or a name that does not conflict with `Foo`'s generic params
   = note: `-D clippy::mismatching-type-param-order` implied by `-D warnings`

error: `Foo` has a similarly named generic type parameter `A` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:11:23
   |
LL |     impl<B, A> Foo<B, A> {}
   |                       ^
   |
   = help: try `B`, or a name that does not conflict with `Foo`'s generic params

error: `Foo` has a similarly named generic type parameter `A` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:14:23
   |
LL |     impl<C, A> Foo<C, A> {}
   |                       ^
   |
   = help: try `B`, or a name that does not conflict with `Foo`'s generic params

error: `FooLifetime` has a similarly named generic type parameter `B` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:25:44
   |
LL |     impl<'m, 'l, B, A> FooLifetime<'m, 'l, B, A> {}
   |                                            ^
   |
   = help: try `A`, or a name that does not conflict with `FooLifetime`'s generic params

error: `FooLifetime` has a similarly named generic type parameter `A` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:25:47
   |
LL |     impl<'m, 'l, B, A> FooLifetime<'m, 'l, B, A> {}
   |                                               ^
   |
   = help: try `B`, or a name that does not conflict with `FooLifetime`'s generic params

error: `FooEnum` has a similarly named generic type parameter `C` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:41:27
   |
LL |     impl<C, A, B> FooEnum<C, A, B> {}
   |                           ^
   |
   = help: try `A`, or a name that does not conflict with `FooEnum`'s generic params

error: `FooEnum` has a similarly named generic type parameter `A` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:41:30
   |
LL |     impl<C, A, B> FooEnum<C, A, B> {}
   |                              ^
   |
   = help: try `B`, or a name that does not conflict with `FooEnum`'s generic params

error: `FooEnum` has a similarly named generic type parameter `B` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:41:33
   |
LL |     impl<C, A, B> FooEnum<C, A, B> {}
   |                                 ^
   |
   = help: try `C`, or a name that does not conflict with `FooEnum`'s generic params

error: `FooUnion` has a similarly named generic type parameter `B` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:52:31
   |
LL |     impl<B: Copy, A> FooUnion<B, A> where A: Copy {}
   |                               ^
   |
   = help: try `A`, or a name that does not conflict with `FooUnion`'s generic params

error: `FooUnion` has a similarly named generic type parameter `A` in its declaration, but in a different order
  --> $DIR/mismatching_type_param_order.rs:52:34
   |
LL |     impl<B: Copy, A> FooUnion<B, A> where A: Copy {}
   |                                  ^
   |
   = help: try `B`, or a name that does not conflict with `FooUnion`'s generic params

error: aborting due to 10 previous errors