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