rust/tests/ui/use/use-mod/use-mod-5.rs
2023-01-11 09:32:08 +00:00

14 lines
229 B
Rust

mod foo {
pub mod bar {
pub fn drop() {}
}
}
use foo::bar::self;
//~^ ERROR `self` imports are only allowed within a { } list
fn main() {
// Because of error recovery this shouldn't error
bar::drop();
}