about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-08-14 12:50:01 +0200
committerRalf Jung <post@ralfj.de>2018-08-15 10:53:26 +0200
commit2fd2f9cfaf04a128f1179703f8f7c3aaf0b0658d (patch)
tree848636ce1aa3bcab67754a25bf85eb9f6a1183c3 /src/test/ui
parentafd0a2f2499ff66e74236c5b06d3ab9ab87dd3d3 (diff)
downloadrust-2fd2f9cfaf04a128f1179703f8f7c3aaf0b0658d.tar.gz
rust-2fd2f9cfaf04a128f1179703f8f7c3aaf0b0658d.zip
fix error for unsized packed struct field
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/issues/issue-27060-2.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/issues/issue-27060-2.stderr b/src/test/ui/issues/issue-27060-2.stderr
index ed9db2ea55e..c9a29ac2199 100644
--- a/src/test/ui/issues/issue-27060-2.stderr
+++ b/src/test/ui/issues/issue-27060-2.stderr
@@ -7,7 +7,7 @@ LL |     data: T, //~ ERROR the size for values of type
    = help: the trait `std::marker::Sized` is not implemented for `T`
    = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
    = help: consider adding a `where T: std::marker::Sized` bound
-   = note: only the last field of a struct may have a dynamically sized type
+   = note: the last field of a packed struct may only have a dynamically sized type if it does not need drop to be run
 
 error: aborting due to previous error