rust/src/test/ui/crate-in-paths.rs

13 lines
176 B
Rust
Raw Normal View History

// edition:2018
#![feature(crate_visibility_modifier)]
mod bar {
crate struct Foo;
}
fn main() {
Foo;
//~^ ERROR cannot find value `Foo` in this scope [E0425]
}