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