]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/trait-pointers.rs
1 // min-lldb-version: 310
7 #![allow(unused_variables)]
8 #![feature(omit_gdb_pretty_printer_section)]
9 #![omit_gdb_pretty_printer_section]
12 fn method(&self) -> isize { 0 }
20 impl Trait
for Struct {}
22 // There is no real test here yet. Just make sure that it compiles without crashing.
24 let stack_struct
= Struct { a:0, b: 1.0 }
;
25 let reference
: &Trait
= &stack_struct
as &Trait
;
26 let unique
: Box
<Trait
> = Box
::new(Struct { a:2, b: 3.0 }
) as Box
<Trait
>;