summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/absolute-paths-in-nested-use-groups.rs
blob: 96b5131674c757ff2e76ee611232f950ebea0e65 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![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() {}