]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-associated-const.rs
Rollup merge of #91086 - rhysd:issue-91085, r=m-ou-se
[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() {}