1
Fork 0
rust/src/test/ui/use/use-associated-const.rs
2019-04-10 12:55:21 -04:00

13 lines
190 B
Rust

#![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() {}