2018-10-20 17:23:29 -05:00
|
|
|
mod foo {
|
|
|
|
pub struct A;
|
|
|
|
pub struct B;
|
|
|
|
}
|
|
|
|
|
|
|
|
use foo::{self};
|
2018-11-27 03:56:36 -06:00
|
|
|
//~^ ERROR is defined multiple times
|
2018-10-20 17:23:29 -05:00
|
|
|
|
|
|
|
use foo as self;
|
2018-11-27 03:56:36 -06:00
|
|
|
//~^ ERROR expected identifier
|
2018-10-20 17:23:29 -05:00
|
|
|
|
2020-05-03 11:56:52 -05:00
|
|
|
use foo::self; //~ ERROR is defined multiple times
|
2018-11-27 03:56:36 -06:00
|
|
|
//~^ ERROR `self` imports are only allowed within a { } list
|
2018-10-20 17:23:29 -05:00
|
|
|
|
2018-11-24 19:25:59 -06:00
|
|
|
use foo::A;
|
|
|
|
use foo::{self as A};
|
2018-11-27 03:56:36 -06:00
|
|
|
//~^ ERROR is defined multiple times
|
2018-11-24 19:25:59 -06:00
|
|
|
|
2018-10-20 17:23:29 -05:00
|
|
|
fn main() {}
|