File tree Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
mod foo {
12
- use self :: { mod } ;
12
+ use self :: { self } ;
13
13
//~^ ERROR unresolved import `self`. There is no `self` in `???`
14
14
15
- use super :: { mod } ;
15
+ use super :: { self } ;
16
16
//~^ ERROR unresolved import `super`. There is no `super` in `???`
17
17
}
18
18
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
use foo:: bar:: {
12
- mod //~ ERROR module `bar` is private
12
+ self //~ ERROR module `bar` is private
13
13
} ;
14
14
use foo:: bar:: {
15
15
Bar //~ ERROR type `Bar` is inaccessible
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
use foo:: bar:: {
12
- mod ,
13
- //~^ ERROR `mod ` import can only appear once in the list
12
+ self ,
13
+ //~^ ERROR `self ` import can only appear once in the list
14
14
Bar ,
15
- mod
16
- //~^ NOTE another `mod ` import appears here
15
+ self
16
+ //~^ NOTE another `self ` import appears here
17
17
} ;
18
18
19
- use { mod } ;
20
- //~^ ERROR `mod ` import can only appear in an import list with a non-empty prefix
19
+ use { self } ;
20
+ //~^ ERROR `self ` import can only appear in an import list with a non-empty prefix
21
21
22
- use foo:: mod ;
23
- //~^ ERROR `mod ` imports are only allowed within a { } list
22
+ use foo:: self ;
23
+ //~^ ERROR `self ` imports are only allowed within a { } list
24
24
25
25
mod foo {
26
26
pub mod bar {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ extern crate collections;
13
13
extern crate serialize;
14
14
15
15
use std:: collections:: HashMap ;
16
- use serialize:: json:: { mod , Json } ;
16
+ use serialize:: json:: { self , Json } ;
17
17
use std:: option;
18
18
19
19
enum object {
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- pub use foo:: bar:: { mod , First } ;
11
+ pub use foo:: bar:: { self , First } ;
12
12
use self :: bar:: Second ;
13
13
14
14
mod foo {
15
- pub use self :: bar:: baz:: { mod } ;
15
+ pub use self :: bar:: baz:: { self } ;
16
16
17
17
pub mod bar {
18
18
pub mod baz {
You can’t perform that action at this time.
0 commit comments