@@ -75,8 +75,30 @@ LL | type Out<'x, D>;
7575 = note: this bound is currently required to ensure that impls have maximum flexibility
7676 = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
7777
78+ warning: missing recommended bound on `Bar`
79+ --> $DIR/self-outlives-lint.rs:107:5
80+ |
81+ LL | type Bar;
82+ | ^^^^^^^^-
83+ | |
84+ | help: add the recommended where clause: `where Self: 'a`
85+ |
86+ = note: this bound is currently recommended to ensure that impls have maximum flexibility
87+ = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
88+
89+ warning: missing recommended bound on `Output`
90+ --> $DIR/self-outlives-lint.rs:115:5
91+ |
92+ LL | type Output;
93+ | ^^^^^^^^^^^-
94+ | |
95+ | help: add the recommended where clause: `where Self: 'a`
96+ |
97+ = note: this bound is currently recommended to ensure that impls have maximum flexibility
98+ = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
99+
78100error: missing required bounds on `Bar`
79- --> $DIR/self-outlives-lint.rs:114 :5
101+ --> $DIR/self-outlives-lint.rs:124 :5
80102 |
81103LL | type Bar<'b>;
82104 | ^^^^^^^^^^^^-
@@ -87,7 +109,7 @@ LL | type Bar<'b>;
87109 = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
88110
89111error: missing required bound on `Bar`
90- --> $DIR/self-outlives-lint.rs:122 :5
112+ --> $DIR/self-outlives-lint.rs:132 :5
91113 |
92114LL | type Bar<'b>;
93115 | ^^^^^^^^^^^^-
@@ -98,7 +120,7 @@ LL | type Bar<'b>;
98120 = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
99121
100122error: missing required bound on `Bar`
101- --> $DIR/self-outlives-lint.rs:129 :5
123+ --> $DIR/self-outlives-lint.rs:139 :5
102124 |
103125LL | type Bar<'b>;
104126 | ^^^^^^^^^^^^-
@@ -109,7 +131,7 @@ LL | type Bar<'b>;
109131 = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
110132
111133error: missing required bound on `Iterator`
112- --> $DIR/self-outlives-lint.rs:143 :5
134+ --> $DIR/self-outlives-lint.rs:153 :5
113135 |
114136LL | type Iterator<'a>: Iterator<Item = Self::Item<'a>>;
115137 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
@@ -120,7 +142,7 @@ LL | type Iterator<'a>: Iterator<Item = Self::Item<'a>>;
120142 = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
121143
122144error: missing required bound on `Bar`
123- --> $DIR/self-outlives-lint.rs:151 :5
145+ --> $DIR/self-outlives-lint.rs:161 :5
124146 |
125147LL | type Bar<'a, 'b>;
126148 | ^^^^^^^^^^^^^^^^-
@@ -131,7 +153,7 @@ LL | type Bar<'a, 'b>;
131153 = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
132154
133155error: missing required bound on `Fut`
134- --> $DIR/self-outlives-lint.rs:167 :5
156+ --> $DIR/self-outlives-lint.rs:177 :5
135157 |
136158LL | type Fut<'out>;
137159 | ^^^^^^^^^^^^^^-
@@ -141,5 +163,5 @@ LL | type Fut<'out>;
141163 = note: this bound is currently required to ensure that impls have maximum flexibility
142164 = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
143165
144- error: aborting due to 13 previous errors
166+ error: aborting due to 13 previous errors; 2 warnings emitted
145167
0 commit comments