]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-associated-const.rs
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[rust.git] / src / test / ui / use / use-associated-const.rs
1 #![allow(unused_imports)]
2
3 pub mod foo {
4     pub struct Foo;
5
6     impl Foo {
7         pub const BAR: i32 = 0;
8     }
9 }
10
11 use foo::Foo::BAR; //~ ERROR unresolved import `foo::Foo`
12
13 fn main() {}