stabby 72.1.2

A Stable ABI for Rust with compact sum-types.
1
2
3
4
5
6
7
8
9
10
11
12
13
#[test]
fn issue_112() {
    use crate::boxed::Box;

    struct Deadbeef(u32);

    impl Drop for Deadbeef {
        fn drop(&mut self) {
            assert_eq!(self.0, 0xdeadbeef, "not deadbeef?!")
        }
    }
    let _deadbeef: crate::dynptr!(Box<dyn Send>) = Box::new(Deadbeef(0xdeadbeef)).into();
}