]>
git.proxmox.com Git - rustc.git/blob - src/test/auxiliary/lang-item-public.rs
b9cc20b63cc5640258ac6bc70afde33440a6d24a
1 // Copyright 2014 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 #![feature(lang_items)]
16 pub trait PhantomFn
<A
:?Sized
,R
:?Sized
=()> { }
17 impl<A
:?Sized
, R
:?Sized
, U
:?Sized
> PhantomFn
<A
,R
> for U { }
20 pub trait Sized
: PhantomFn
<Self> {}
23 fn panic(_
: &(&'
static str, &'
static str, uint
)) -> ! { loop {}
}
25 #[lang = "stack_exhausted"]
26 extern fn stack_exhausted() {}
28 #[lang = "eh_personality"]
29 extern fn eh_personality() {}
32 pub trait Copy
: PhantomFn
<Self> {