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