rust/tests/ui/imports/absolute-paths-in-nested-use-groups.rs

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

12 lines
306 B
Rust
Raw Normal View History

#![allow(unused_imports)]
mod foo {}
use foo::{
::bar, //~ ERROR crate root in paths can only be used in start position
super::bar, //~ ERROR `super` in paths can only be used in start position
self::bar, //~ ERROR `self` in paths can only be used in start position
};
fn main() {}