Patrick Walton | 4c2e4c37 | 2012-12-13 21:05:22 | [diff] [blame] | 1 | // xfail-fast |
| 2 | |
Graydon Hoare | d1affff | 2012-12-11 01:32:48 | [diff] [blame] | 3 | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT |
| 4 | // file at the top-level directory of this distribution and at |
| 5 | // http://rust-lang.org/COPYRIGHT. |
| 6 | // |
| 7 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
| 9 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
| 10 | // option. This file may not be copied, modified, or distributed |
| 11 | // except according to those terms. |
| 12 | |
Graydon Hoare | ce72993 | 2011-06-15 18:19:50 | [diff] [blame] | 13 | |
Patrick Walton | f686896 | 2012-09-05 19:32:05 | [diff] [blame] | 14 | use foo::x; |
| 15 | use z = foo::x; |
Rafael Ávila de Espíndola | 3cac20d | 2011-01-28 16:54:59 | [diff] [blame] | 16 | |
| 17 | mod foo { |
Alex Crichton | daf5f5a | 2013-10-21 20:08:31 | [diff] [blame^] | 18 | pub fn x(y: int) { info!("{}", y); } |
Rafael Ávila de Espíndola | 3cac20d | 2011-01-28 16:54:59 | [diff] [blame] | 19 | } |
| 20 | |
Graydon Hoare | 89c8ef7 | 2013-02-02 03:43:17 | [diff] [blame] | 21 | pub fn main() { x(10); z(10); } |