@@ -234,29 +234,27 @@ help: try renaming it with a name
234234LL | use super::{super as name};
235235 | +++++++
236236
237- error: `super` in paths can only be used in start position or after another `super`
237+ error: imports need to be explicitly named
238238 --> $DIR/use-path-segment-kw.rs:163:19
239239 |
240240LL | use self::super;
241241 | ^^^^^
242-
243- error: `super` in paths can only be used in start position or after another `super`
244- --> $DIR/use-path-segment-kw.rs:164:19
245242 |
246- LL | use self::super as _super6;
247- | ^^^^^
243+ help: try renaming it with a name
244+ |
245+ LL | use self::super as name;
246+ | +++++++
248247
249- error: `super` in paths can only be used in start position or after another `super`
248+ error: imports need to be explicitly named
250249 --> $DIR/use-path-segment-kw.rs:165:20
251250 |
252251LL | use self::{super};
253252 | ^^^^^
254-
255- error: `super` in paths can only be used in start position or after another `super`
256- --> $DIR/use-path-segment-kw.rs:166:20
257253 |
258- LL | use self::{super as _nested_super6};
259- | ^^^^^
254+ help: try renaming it with a name
255+ |
256+ LL | use self::{super as name};
257+ | +++++++
260258
261259error: imports need to be explicitly named
262260 --> $DIR/use-path-segment-kw.rs:173:13
@@ -939,7 +937,7 @@ LL | type D7 = crate::foo::bar::self;
939937 | ^^^^ `self` in paths can only be used in start position
940938
941939error[E0433]: failed to resolve: could not find `_nested_self2` in `bar`
942- --> $DIR/use-path-segment-kw.rs:239 :15
940+ --> $DIR/use-path-segment-kw.rs:241 :15
943941 |
944942LL | foo::bar::_nested_self2::outer();
945943 | ^^^^^^^^^^^^^ could not find `_nested_self2` in `bar`
@@ -1162,7 +1160,7 @@ error[E0433]: failed to resolve: `self` in paths can only be used in start posit
11621160LL | type D6 = self::self;
11631161 | ^^^^ `self` in paths can only be used in start position
11641162
1165- error: aborting due to 128 previous errors
1163+ error: aborting due to 126 previous errors
11661164
11671165Some errors have detailed explanations: E0429, E0433, E0573.
11681166For more information about an error, try `rustc --explain E0429`.
0 commit comments