summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-unnecessary-import-braces.rs
blob: 9a3398a8734e62716735fa3789a145b1a6e22ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![deny(unused_import_braces)]

use test::{A}; //~ ERROR braces around A is unnecessary

mod test {
    use test::{self}; // OK
    use test::{self as rename}; // OK
    pub struct A;
}

fn main() {}