@@ -192,6 +192,30 @@ error[E0432]: unresolved import `super::Struct`
192192LL | pub use super::Struct::{self};
193193 | ^^^^^^ `Struct` is a struct, not a module
194194
195+ error[E0433]: `self` in paths can only be used in start position or last position
196+ --> $DIR/use-self-at-end.rs:83:24
197+ |
198+ LL | pub use super::self::y::z;
199+ | ^^^^ can only be used in path start position or last position
200+
201+ error[E0433]: `self` in paths can only be used in start position or last position
202+ --> $DIR/use-self-at-end.rs:84:24
203+ |
204+ LL | pub use super::self::y::z as z3;
205+ | ^^^^ can only be used in path start position or last position
206+
207+ error[E0433]: `self` in paths can only be used in start position or last position
208+ --> $DIR/use-self-at-end.rs:85:24
209+ |
210+ LL | pub use super::self::y::{z};
211+ | ^^^^ can only be used in path start position or last position
212+
213+ error[E0433]: `self` in paths can only be used in start position or last position
214+ --> $DIR/use-self-at-end.rs:86:24
215+ |
216+ LL | pub use super::self::y::{z as z4};
217+ | ^^^^ can only be used in path start position or last position
218+
195219error[E0432]: unresolved import `super::Struct`
196220 --> $DIR/use-self-at-end.rs:66:24
197221 |
@@ -204,6 +228,12 @@ error[E0433]: `self` in paths can only be used in start position or last positio
204228LL | type G = z::self::self;
205229 | ^^^^ can only be used in path start position or last position
206230
231+ error[E0433]: `self` in paths can only be used in start position or last position
232+ --> $DIR/use-self-at-end.rs:82:25
233+ |
234+ LL | type K = super::self::y::z;
235+ | ^^^^ can only be used in path start position or last position
236+
207237error[E0573]: expected type, found module `crate::self`
208238 --> $DIR/use-self-at-end.rs:13:18
209239 |
@@ -266,7 +296,7 @@ help: if this is a dyn-compatible trait, use `dyn`
266296LL | type J = dyn super::Trait::self;
267297 | +++
268298
269- error: aborting due to 29 previous errors; 1 warning emitted
299+ error: aborting due to 34 previous errors; 1 warning emitted
270300
271301Some errors have detailed explanations: E0223, E0252, E0432, E0433, E0573.
272302For more information about an error, try `rustc --explain E0223`.
0 commit comments