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 99// except according to those terms.
1010
1111mod foo {
12- use self :: { mod } ;
12+ use self :: { self } ;
1313 //~^ ERROR unresolved import `self`. There is no `self` in `???`
1414
15- use super :: { mod } ;
15+ use super :: { self } ;
1616 //~^ ERROR unresolved import `super`. There is no `super` in `???`
1717}
1818
Original file line number Diff line number Diff line change 99// except according to those terms.
1010
1111use foo:: bar:: {
12- mod //~ ERROR module `bar` is private
12+ self //~ ERROR module `bar` is private
1313} ;
1414use foo:: bar:: {
1515 Bar //~ ERROR type `Bar` is inaccessible
Original file line number Diff line number Diff line change 99// except according to those terms.
1010
1111use 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
1414 Bar ,
15- mod
16- //~^ NOTE another `mod ` import appears here
15+ self
16+ //~^ NOTE another `self ` import appears here
1717} ;
1818
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
2121
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
2424
2525mod foo {
2626 pub mod bar {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ extern crate collections;
1313extern crate serialize;
1414
1515use std:: collections:: HashMap ;
16- use serialize:: json:: { mod , Json } ;
16+ use serialize:: json:: { self , Json } ;
1717use std:: option;
1818
1919enum object {
Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11- pub use foo:: bar:: { mod , First } ;
11+ pub use foo:: bar:: { self , First } ;
1212use self :: bar:: Second ;
1313
1414mod foo {
15- pub use self :: bar:: baz:: { mod } ;
15+ pub use self :: bar:: baz:: { self } ;
1616
1717 pub mod bar {
1818 pub mod baz {
You can’t perform that action at this time.
0 commit comments