summaryrefslogtreecommitdiffstats
path: root/tests/ui/use/use-associated-const.rs
blob: 714fbdabb81ce00cbb4c23c8d1852995e101dd62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(unused_imports)]

pub mod foo {
    pub struct Foo;

    impl Foo {
        pub const BAR: i32 = 0;
    }
}

use foo::Foo::BAR; //~ ERROR unresolved import `foo::Foo`

fn main() {}