1
1
error[E0277]: the trait bound `[u16; 3]: Bar` is not satisfied
2
- --> $DIR/issue-67185-2.rs:12:1
2
+ --> $DIR/issue-67185-2.rs:15:5
3
3
|
4
- LL | / trait Foo
5
- LL | |
6
- LL | | where
7
- LL | | [<u8 as Baz>::Quaks; 2]: Bar,
8
- LL | | <u8 as Baz>::Quaks: Bar,
9
- LL | | {
10
- LL | | }
11
- | |_^ the trait `Bar` is not implemented for `[u16; 3]`
4
+ LL | <u8 as Baz>::Quaks: Bar,
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` is not implemented for `[u16; 3]`
12
6
|
13
7
= help: the following implementations were found:
14
8
<[[u16; 3]; 3] as Bar>
@@ -17,16 +11,10 @@ LL | | }
17
11
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
18
12
19
13
error[E0277]: the trait bound `[[u16; 3]; 2]: Bar` is not satisfied
20
- --> $DIR/issue-67185-2.rs:12:1
14
+ --> $DIR/issue-67185-2.rs:14:5
21
15
|
22
- LL | / trait Foo
23
- LL | |
24
- LL | | where
25
- LL | | [<u8 as Baz>::Quaks; 2]: Bar,
26
- LL | | <u8 as Baz>::Quaks: Bar,
27
- LL | | {
28
- LL | | }
29
- | |_^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
16
+ LL | [<u8 as Baz>::Quaks; 2]: Bar,
17
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
30
18
|
31
19
= help: the following implementations were found:
32
20
<[[u16; 3]; 3] as Bar>
@@ -35,7 +23,7 @@ LL | | }
35
23
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
36
24
37
25
error[E0277]: the trait bound `[u16; 3]: Bar` is not satisfied
38
- --> $DIR/issue-67185-2.rs:22 :6
26
+ --> $DIR/issue-67185-2.rs:21 :6
39
27
|
40
28
LL | impl Foo for FooImpl {}
41
29
| ^^^ the trait `Bar` is not implemented for `[u16; 3]`
@@ -44,16 +32,16 @@ LL | impl Foo for FooImpl {}
44
32
<[[u16; 3]; 3] as Bar>
45
33
<[u16; 4] as Bar>
46
34
note: required by a bound in `Foo`
47
- --> $DIR/issue-67185-2.rs:16:29
35
+ --> $DIR/issue-67185-2.rs:15:25
48
36
|
49
37
LL | trait Foo
50
38
| --- required by a bound in this
51
39
...
52
- LL | <u8 as Baz>::Quaks: Bar,
53
- | ^^^ required by this bound in `Foo`
40
+ LL | <u8 as Baz>::Quaks: Bar,
41
+ | ^^^ required by this bound in `Foo`
54
42
55
43
error[E0277]: the trait bound `[[u16; 3]; 2]: Bar` is not satisfied
56
- --> $DIR/issue-67185-2.rs:22 :6
44
+ --> $DIR/issue-67185-2.rs:21 :6
57
45
|
58
46
LL | impl Foo for FooImpl {}
59
47
| ^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
@@ -62,16 +50,16 @@ LL | impl Foo for FooImpl {}
62
50
<[[u16; 3]; 3] as Bar>
63
51
<[u16; 4] as Bar>
64
52
note: required by a bound in `Foo`
65
- --> $DIR/issue-67185-2.rs:15:34
53
+ --> $DIR/issue-67185-2.rs:14:30
66
54
|
67
55
LL | trait Foo
68
56
| --- required by a bound in this
69
- ...
70
- LL | [<u8 as Baz>::Quaks; 2]: Bar,
71
- | ^^^ required by this bound in `Foo`
57
+ LL | where
58
+ LL | [<u8 as Baz>::Quaks; 2]: Bar,
59
+ | ^^^ required by this bound in `Foo`
72
60
73
61
error[E0277]: the trait bound `[[u16; 3]; 2]: Bar` is not satisfied
74
- --> $DIR/issue-67185-2.rs:26 :14
62
+ --> $DIR/issue-67185-2.rs:25 :14
75
63
|
76
64
LL | fn f(_: impl Foo) {}
77
65
| ^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
@@ -80,16 +68,16 @@ LL | fn f(_: impl Foo) {}
80
68
<[[u16; 3]; 3] as Bar>
81
69
<[u16; 4] as Bar>
82
70
note: required by a bound in `Foo`
83
- --> $DIR/issue-67185-2.rs:15:34
71
+ --> $DIR/issue-67185-2.rs:14:30
84
72
|
85
73
LL | trait Foo
86
74
| --- required by a bound in this
87
- ...
88
- LL | [<u8 as Baz>::Quaks; 2]: Bar,
89
- | ^^^ required by this bound in `Foo`
75
+ LL | where
76
+ LL | [<u8 as Baz>::Quaks; 2]: Bar,
77
+ | ^^^ required by this bound in `Foo`
90
78
91
79
error[E0277]: the trait bound `[u16; 3]: Bar` is not satisfied
92
- --> $DIR/issue-67185-2.rs:26 :14
80
+ --> $DIR/issue-67185-2.rs:25 :14
93
81
|
94
82
LL | fn f(_: impl Foo) {}
95
83
| ^^^ the trait `Bar` is not implemented for `[u16; 3]`
@@ -98,13 +86,13 @@ LL | fn f(_: impl Foo) {}
98
86
<[[u16; 3]; 3] as Bar>
99
87
<[u16; 4] as Bar>
100
88
note: required by a bound in `Foo`
101
- --> $DIR/issue-67185-2.rs:16:29
89
+ --> $DIR/issue-67185-2.rs:15:25
102
90
|
103
91
LL | trait Foo
104
92
| --- required by a bound in this
105
93
...
106
- LL | <u8 as Baz>::Quaks: Bar,
107
- | ^^^ required by this bound in `Foo`
94
+ LL | <u8 as Baz>::Quaks: Bar,
95
+ | ^^^ required by this bound in `Foo`
108
96
109
97
error: aborting due to 6 previous errors
110
98
0 commit comments