rust/tests/ui/use/use-associated-const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
190 B
Rust
Raw Normal View History

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