brash 0.1.0

Demo crate illustrating upstream future incompatibility lint.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[repr(packed)]
pub struct Unaligned<T>(pub T);

pub struct Foo {
    _start: u8,
    data: Unaligned<u32>,
}




pub fn foo(x: &Foo) {
    let y = &x.data.0;
    println!("{}", y);
}