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