@@ -38,74 +38,122 @@ LL | T: DupWhere + DupWhere,
3838error: this lifetime bound has already been specified
3939 --> $DIR/duplicate_bounds.rs:34:31
4040 |
41- LL | fn dup_lifetimes<'a, 'b: 'a + 'a>() {}
41+ LL | fn dup_lifetimes<'a, 'b: 'a + 'a>()
4242 | ^^
4343 |
4444 = help: consider removing this lifetime bound
4545
4646error: this lifetime bound has already been specified
47- --> $DIR/duplicate_bounds.rs:37:38
47+ --> $DIR/duplicate_bounds.rs:37:9
4848 |
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>()
5058 | ^^
5159 |
5260 = help: consider removing this lifetime bound
5361
5462error: this lifetime bound has already been specified
55- --> $DIR/duplicate_bounds.rs:42 :8
63+ --> $DIR/duplicate_bounds.rs:45 :8
5664 |
57- LL | T: 'static ,
58- | ^^^^^^^
65+ LL | T: 'a ,
66+ | ^^
5967 |
6068 = help: consider removing this lifetime bound
6169
6270error: this trait bound has already been specified
63- --> $DIR/duplicate_bounds.rs:48 :31
71+ --> $DIR/duplicate_bounds.rs:51 :31
6472 |
6573LL | fn everything<T: Everything + Everything, U: Everything + Everything>((t, u): (T, U))
6674 | ^^^^^^^^^^
6775 |
6876 = help: consider removing this trait bound
6977
7078error: this trait bound has already been specified
71- --> $DIR/duplicate_bounds.rs:48 :59
79+ --> $DIR/duplicate_bounds.rs:51 :59
7280 |
7381LL | fn everything<T: Everything + Everything, U: Everything + Everything>((t, u): (T, U))
7482 | ^^^^^^^^^^
7583 |
7684 = help: consider removing this trait bound
7785
7886error: this trait bound has already been specified
79- --> $DIR/duplicate_bounds.rs:52 :8
87+ --> $DIR/duplicate_bounds.rs:55 :8
8088 |
8189LL | T: Everything + Everything + Everything,
8290 | ^^^^^^^^^^
8391 |
8492 = help: consider removing this trait bound
8593
8694error: this trait bound has already been specified
87- --> $DIR/duplicate_bounds.rs:52 :21
95+ --> $DIR/duplicate_bounds.rs:55 :21
8896 |
8997LL | T: Everything + Everything + Everything,
9098 | ^^^^^^^^^^
9199 |
92100 = help: consider removing this trait bound
93101
94102error: this trait bound has already been specified
95- --> $DIR/duplicate_bounds.rs:52 :34
103+ --> $DIR/duplicate_bounds.rs:55 :34
96104 |
97105LL | T: Everything + Everything + Everything,
98106 | ^^^^^^^^^^
99107 |
100108 = help: consider removing this trait bound
101109
102110error: this trait bound has already been specified
103- --> $DIR/duplicate_bounds.rs:56 :8
111+ --> $DIR/duplicate_bounds.rs:59 :8
104112 |
105113LL | U: Everything,
106114 | ^^^^^^^^^^
107115 |
108116 = help: consider removing this trait bound
109117
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
111159
0 commit comments