summary refs log tree commit diff
path: root/src/test/ui/unsized/issue-30355.rs
blob: 018110905032059aaf0bd5d6d17f1bc87771da67 (plain)
1
2
3
4
5
6
7
8
9
10
pub struct X([u8]);

pub static Y: &'static X = {
    const Y: &'static [u8] = b"";
    &X(*Y)
    //~^ ERROR E0277
    //~| ERROR E0277
};

fn main() {}