about summary refs log tree commit diff
path: root/tests/ui/underscore-imports/issue-110164.rs
blob: bb080c5e471d4937039e911468f542bf8882b9b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ revisions: ed2015 ed2021
//@[ed2015] edition: 2015
//@[ed2021] edition: 2021
use self::*;
//~^ ERROR unresolved import `self::*`
use crate::*;
//~^ ERROR unresolved import `crate::*`
use _::a;
//~^ ERROR expected identifier, found reserved identifier `_`
use _::*;
//~^ ERROR expected identifier, found reserved identifier `_`

fn main() {
    use _::a;
    //~^ ERROR expected identifier, found reserved identifier `_`
    use _::*;
    //~^ ERROR expected identifier, found reserved identifier `_`
}