]>
Commit | Line | Data |
---|---|---|
1a4d82fc | 1 | // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT |
223e47cc LB |
2 | // file at the top-level directory of this distribution and at |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
223e47cc | 11 | use zed::bar; |
9e0c209e SL |
12 | use zed::baz; //~ ERROR unresolved import `zed::baz` [E0432] |
13 | //~^ no `baz` in `zed`. Did you mean to use `bar`? | |
1a4d82fc JJ |
14 | |
15 | ||
223e47cc | 16 | mod zed { |
1a4d82fc | 17 | pub fn bar() { println!("bar"); } |
9e0c209e SL |
18 | use foo; //~ ERROR unresolved import `foo` [E0432] |
19 | //~^ no `foo` in the root | |
7453a54e SL |
20 | } |
21 | ||
22 | fn main() { | |
476ff2be | 23 | zed::foo(); //~ ERROR `foo` is private |
7453a54e | 24 | bar(); |
223e47cc | 25 | } |