]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-associated-const.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[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() {}