blob: 2af4cf5e984246afd87c1daedf0caf6bae51f0fa [file] [log] [blame]
Patrick Walton4c2e4c372012-12-13 21:05:221// xfail-fast
2
Graydon Hoared1affff2012-12-11 01:32:483// 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 Hoarece729932011-06-15 18:19:5013
Patrick Waltonf6868962012-09-05 19:32:0514use foo::x;
15use z = foo::x;
Rafael Ávila de Espíndola3cac20d2011-01-28 16:54:5916
17mod foo {
Alex Crichtondaf5f5a2013-10-21 20:08:3118 pub fn x(y: int) { info!("{}", y); }
Rafael Ávila de Espíndola3cac20d2011-01-28 16:54:5919}
20
Graydon Hoare89c8ef72013-02-02 03:43:1721pub fn main() { x(10); z(10); }