mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-05 08:34:36 +00:00
14 lines
236 B
Rust
14 lines
236 B
Rust
mod foo {
|
|
pub mod bar {
|
|
pub fn drop() {}
|
|
}
|
|
}
|
|
|
|
use foo::bar::self as abc;
|
|
//~^ ERROR `self` imports are only allowed within a { } list
|
|
|
|
fn main() {
|
|
// Because of error recovery this shouldn't error
|
|
abc::drop();
|
|
}
|