diff options
Diffstat (limited to 'tests/ui/unsized/issue-30355.rs')
-rw-r--r-- | tests/ui/unsized/issue-30355.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/unsized/issue-30355.rs b/tests/ui/unsized/issue-30355.rs new file mode 100644 index 000000000..6ff5b37f6 --- /dev/null +++ b/tests/ui/unsized/issue-30355.rs @@ -0,0 +1,9 @@ +pub struct X([u8]); + +pub static Y: &'static X = { + const Y: &'static [u8] = b""; + &X(*Y) + //~^ ERROR E0277 +}; + +fn main() {} |