summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs
blob: c902d133e7cec0b15bb51b598abd2905962945ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// check-pass
// edition:2018

#![allow(non_camel_case_types)]

enum Foo {}

struct std;

fn main() {
    enum Foo { A, B }
    use Foo::*; // OK

    let _ = (A, B);

    fn std() {}
    enum std {}
    use std as foo; // OK
}