]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | use 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 | ||
9 | use {self}; | |
10 | //~^ ERROR `self` import can only appear in an import list with a non-empty prefix | |
11 | ||
1a4d82fc JJ |
12 | mod foo { |
13 | pub mod bar { | |
14 | pub struct Bar; | |
15 | pub struct Baz; | |
16 | } | |
17 | } | |
18 | ||
19 | fn main() {} |