rust/src/test/run-pass/use.rs

32 lines
762 B
Rust
Raw Normal View History

// ignore-fast
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-fast
2013-08-17 08:37:42 -07:00
#[allow(unused_imports)];
#[no_std];
extern mod std;
extern mod zed = "std";
extern mod bar = "std#0.10-pre";
2010-12-24 17:03:46 -08:00
use std::str;
2012-09-05 12:32:05 -07:00
use x = zed::str;
2010-12-24 17:03:46 -08:00
mod baz {
pub use bar::str;
pub use x = std::str;
2010-12-24 17:03:46 -08:00
}
#[start]
pub fn start(_: int, _: **u8) -> int { 0 }