]> git.lizzy.rs Git - rust.git/blob - tests/ui/use/use-mod.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[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() {}