2014-07-18 00:56:56 +02:00
|
|
|
use foo::bar::{
|
2014-12-31 17:29:22 +13:00
|
|
|
self,
|
2017-12-19 19:53:39 -08:00
|
|
|
//~^ ERROR `self` import can only appear once in an import list
|
2014-07-18 00:56:56 +02:00
|
|
|
Bar,
|
2014-12-31 17:29:22 +13:00
|
|
|
self
|
2017-12-10 23:29:24 +03:00
|
|
|
//~^ ERROR the name `bar` is defined multiple times
|
2014-07-18 00:56:56 +02:00
|
|
|
};
|
|
|
|
|
2014-12-31 17:29:22 +13:00
|
|
|
use {self};
|
|
|
|
//~^ ERROR `self` import can only appear in an import list with a non-empty prefix
|
2014-07-18 00:56:56 +02:00
|
|
|
|
|
|
|
mod foo {
|
|
|
|
pub mod bar {
|
|
|
|
pub struct Bar;
|
|
|
|
pub struct Baz;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|