]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsized/issue-30355.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / unsized / issue-30355.rs
1 pub struct X([u8]);
2
3 pub static Y: &'static X = {
4     const Y: &'static [u8] = b"";
5     &X(*Y)
6     //~^ ERROR E0277
7 };
8
9 fn main() {}