]> git.lizzy.rs Git - rust.git/blob - src/test/ui/absolute-paths-in-nested-use-groups.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / absolute-paths-in-nested-use-groups.rs
1 #![allow(unused_imports)]
2
3 mod foo {}
4
5 use foo::{
6     ::bar,       //~ ERROR crate root in paths can only be used in start position
7     super::bar,  //~ ERROR `super` in paths can only be used in start position
8     self::bar,   //~ ERROR `self` in paths can only be used in start position
9 };
10
11 fn main() {}