@@ -38,74 +38,122 @@ LL | T: DupWhere + DupWhere,
38
38
error: this lifetime bound has already been specified
39
39
--> $DIR/duplicate_bounds.rs:34:31
40
40
|
41
- LL | fn dup_lifetimes<'a, 'b: 'a + 'a>() {}
41
+ LL | fn dup_lifetimes<'a, 'b: 'a + 'a>()
42
42
| ^^
43
43
|
44
44
= help: consider removing this lifetime bound
45
45
46
46
error: this lifetime bound has already been specified
47
- --> $DIR/duplicate_bounds.rs:37:38
47
+ --> $DIR/duplicate_bounds.rs:37:9
48
48
|
49
- LL | fn dup_lifetimes_generic<'a, T: 'a + 'a>() {}
49
+ LL | 'b: 'a,
50
+ | ^^
51
+ |
52
+ = help: consider removing this lifetime bound
53
+
54
+ error: this lifetime bound has already been specified
55
+ --> $DIR/duplicate_bounds.rs:42:38
56
+ |
57
+ LL | fn dup_lifetimes_generic<'a, T: 'a + 'a>()
50
58
| ^^
51
59
|
52
60
= help: consider removing this lifetime bound
53
61
54
62
error: this lifetime bound has already been specified
55
- --> $DIR/duplicate_bounds.rs:42 :8
63
+ --> $DIR/duplicate_bounds.rs:45 :8
56
64
|
57
- LL | T: 'static ,
58
- | ^^^^^^^
65
+ LL | T: 'a ,
66
+ | ^^
59
67
|
60
68
= help: consider removing this lifetime bound
61
69
62
70
error: this trait bound has already been specified
63
- --> $DIR/duplicate_bounds.rs:48 :31
71
+ --> $DIR/duplicate_bounds.rs:51 :31
64
72
|
65
73
LL | fn everything<T: Everything + Everything, U: Everything + Everything>((t, u): (T, U))
66
74
| ^^^^^^^^^^
67
75
|
68
76
= help: consider removing this trait bound
69
77
70
78
error: this trait bound has already been specified
71
- --> $DIR/duplicate_bounds.rs:48 :59
79
+ --> $DIR/duplicate_bounds.rs:51 :59
72
80
|
73
81
LL | fn everything<T: Everything + Everything, U: Everything + Everything>((t, u): (T, U))
74
82
| ^^^^^^^^^^
75
83
|
76
84
= help: consider removing this trait bound
77
85
78
86
error: this trait bound has already been specified
79
- --> $DIR/duplicate_bounds.rs:52 :8
87
+ --> $DIR/duplicate_bounds.rs:55 :8
80
88
|
81
89
LL | T: Everything + Everything + Everything,
82
90
| ^^^^^^^^^^
83
91
|
84
92
= help: consider removing this trait bound
85
93
86
94
error: this trait bound has already been specified
87
- --> $DIR/duplicate_bounds.rs:52 :21
95
+ --> $DIR/duplicate_bounds.rs:55 :21
88
96
|
89
97
LL | T: Everything + Everything + Everything,
90
98
| ^^^^^^^^^^
91
99
|
92
100
= help: consider removing this trait bound
93
101
94
102
error: this trait bound has already been specified
95
- --> $DIR/duplicate_bounds.rs:52 :34
103
+ --> $DIR/duplicate_bounds.rs:55 :34
96
104
|
97
105
LL | T: Everything + Everything + Everything,
98
106
| ^^^^^^^^^^
99
107
|
100
108
= help: consider removing this trait bound
101
109
102
110
error: this trait bound has already been specified
103
- --> $DIR/duplicate_bounds.rs:56 :8
111
+ --> $DIR/duplicate_bounds.rs:59 :8
104
112
|
105
113
LL | U: Everything,
106
114
| ^^^^^^^^^^
107
115
|
108
116
= help: consider removing this trait bound
109
117
110
- error: aborting due to 13 previous errors
118
+ error: this trait bound has already been specified
119
+ --> $DIR/duplicate_bounds.rs:66:38
120
+ |
121
+ LL | struct DupStruct<T: DupStructBound + DupStructBound>(T)
122
+ | ^^^^^^^^^^^^^^
123
+ |
124
+ = help: consider removing this trait bound
125
+
126
+ error: this trait bound has already been specified
127
+ --> $DIR/duplicate_bounds.rs:69:8
128
+ |
129
+ LL | T: DupStructBound;
130
+ | ^^^^^^^^^^^^^^
131
+ |
132
+ = help: consider removing this trait bound
133
+
134
+ error: this trait bound has already been specified
135
+ --> $DIR/duplicate_bounds.rs:72:35
136
+ |
137
+ LL | impl<'a, T: 'a + DupStructBound + DupStructBound> DupStruct<T>
138
+ | ^^^^^^^^^^^^^^
139
+ |
140
+ = help: consider removing this trait bound
141
+
142
+ error: this lifetime bound has already been specified
143
+ --> $DIR/duplicate_bounds.rs:75:8
144
+ |
145
+ LL | T: 'a + DupStructBound,
146
+ | ^^
147
+ |
148
+ = help: consider removing this lifetime bound
149
+
150
+ error: this trait bound has already been specified
151
+ --> $DIR/duplicate_bounds.rs:75:13
152
+ |
153
+ LL | T: 'a + DupStructBound,
154
+ | ^^^^^^^^^^^^^^
155
+ |
156
+ = help: consider removing this trait bound
157
+
158
+ error: aborting due to 19 previous errors
111
159
0 commit comments