#![cfg_attr(feature = "no_std_examples", feature(lang_items, start, libc))]
#![cfg_attr(feature = "no_std_examples", no_std)]
#[cfg(not(feature = "no_std_examples"))]
fn main() { }
#[cfg(feature = "no_std_examples")]
#[macro_use]
extern crate mopa;
#[cfg(feature = "no_std_examples")]
extern crate libc;
#[cfg(feature = "no_std_examples")]
mod silly_wrapper_to_save_writing_the_whole_cfg_incantation_on_every_item {
trait Panic { fn panic(&self) { } }
trait PanicAny: Panic + ::mopa::Any { }
mopafy!(PanicAny, core = core);
impl Panic for i32 { }
impl<T: Panic + ::mopa::Any + 'static> PanicAny for T { }
#[start]
fn start(_argc: isize, _argv: *const *const u8) -> isize {
let p: &PanicAny = &2;
if p.is::<i32>() {
0
} else {
1
}
}
#[lang = "eh_personality"] extern fn eh_personality() {}
#[lang = "panic_fmt"] extern fn panic_fmt() {}
}