rust/src/test/compile-fail/issue-3993-3.rs
Tim Chevalier f459acc45d Disallow importing private items
resolve wasn't checking that a `use` referred to a public item.

r=brson
2012-11-29 14:12:51 -08:00

10 lines
122 B
Rust

use zoo::fly; //~ ERROR failed to resolve import
mod zoo {
priv type fly = ();
priv fn fly() {}
}
fn main() {}