]> git.lizzy.rs Git - rust.git/blob - tests/ui/use/use-mod.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.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() {}