rust/tests/ui/unsized/issue-30355.rs
2023-01-11 09:32:08 +00:00

10 lines
133 B
Rust

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