1 // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
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.
13 use std::string as i16;
17 fn f<f64>(f64: f64) {}
27 fn f_<f64_>(f64: f64_) {}
36 use super::i32_ as i32;
37 use super::i64_ as i64;
40 use super::u16_ as u16;
41 use super::u32_ as u32;
42 use super::u64_ as u64;
43 use super::bool_ as bool;
44 use super::{bool_ as str};
45 use super::char_ as char;
53 fn usize<'usize>(usize: &'usize usize) -> &'usize usize { usize }
56 use std::mem::size_of;
59 use std::string::String as i16;
62 assert_eq!(size_of::<u8>(), 8);
63 assert_eq!(size_of::<::u64>(), 0);
64 assert_eq!(size_of::<i16>(), 3 * size_of::<*const ()>());
65 assert_eq!(size_of::<u16>(), 0);
72 str @ true => if str { i32 as i64 } else { i64 },
76 reuse::check::<u64>();