]> git.proxmox.com Git - rustc.git/blob - tests/ui/use/use-mod.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / use / use-mod.rs
1 use foo::bar::{
2 self,
3 //~^ ERROR `self` import can only appear once in an import list
4 Bar,
5 self
6 //~^ ERROR the name `bar` is defined multiple times
7 };
8
9 use {self};
10 //~^ ERROR `self` import can only appear in an import list with a non-empty prefix
11
12 mod foo {
13 pub mod bar {
14 pub struct Bar;
15 pub struct Baz;
16 }
17 }
18
19 fn main() {}