7 #![allow(unused_attributes)]
8 #![feature(auto_traits, lang_items, no_core, start, intrinsics)]
17 // Because we don't have core yet.
25 impl Copy for isize {}
26 impl Copy for *mut i32 {}
27 impl Copy for usize {}
37 pub(crate) unsafe auto trait Freeze {}
39 #[lang = "panic_location"]
40 struct PanicLocation {
49 pub fn puts(s: *const u8) -> i32;
50 pub fn fflush(stream: *mut i32) -> i32;
52 pub static STDOUT: *mut i32;
57 extern "rust-intrinsic" {
65 pub fn panic(_msg: &str) -> ! {
67 libc::puts("Panicking\0" as *const str as *const u8);
68 libc::fflush(libc::STDOUT);
74 trait Add<RHS = Self> {
77 fn add(self, rhs: RHS) -> Self::Output;
83 fn add(self, rhs: Self) -> Self {
91 fn add(self, rhs: Self) -> Self {
99 fn add(self, rhs: Self) -> Self {
107 fn add(self, rhs: Self) -> Self {
115 fn add(self, rhs: Self) -> Self {
125 fn main(mut argc: isize, _argv: *const *const u8) -> isize {
126 let int = 9223372036854775807isize;
127 let int = int + argc;