diff options
Diffstat (limited to 'tests/ui/packed/issue-27060-2.rs')
-rw-r--r-- | tests/ui/packed/issue-27060-2.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/packed/issue-27060-2.rs b/tests/ui/packed/issue-27060-2.rs new file mode 100644 index 000000000..a001ce1e0 --- /dev/null +++ b/tests/ui/packed/issue-27060-2.rs @@ -0,0 +1,6 @@ +#[repr(packed)] +pub struct Bad<T: ?Sized> { + data: T, //~ ERROR the size for values of type +} + +fn main() {} |