3 #![allow(non_camel_case_types)]
4 #![allow(non_snake_case)]
5 // ignore-pretty unreported
7 #![feature(box_syntax)]
9 pub trait bomb { fn boom(&self, _: Ident); }
11 impl bomb
for S { fn boom(&self, _: Ident) { }
}
13 pub struct Ident { name: usize }
15 // macro_rules! int3 { () => ( unsafe { asm!( "int3" ); } ) }
16 macro_rules
! int3 { () => ( { }
) }
18 fn Ident_new() -> Ident
{
20 Ident {name: 0x6789ABCD }
23 pub fn light_fuse(fld
: Box
<dyn bomb
>) {
27 fld
.boom(Ident_new()); // *** 1
33 let b
= box S
as Box
<dyn bomb
>;