rust/tests/ui/use/use-mod/use-mod.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
358 B
Rust
Raw Normal View History

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