about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorNikolai Vazquez <hello@nikolaivazquez.com>2022-06-03 12:58:36 -0400
committerNikolai Vazquez <hello@nikolaivazquez.com>2022-06-03 12:58:36 -0400
commit1d3037a107dc30e3e7c299eb939c60b7340d97ba (patch)
tree403b3f72cec0f5875f5fba69b930af5c9076720a /example
parentbe34cb35c7b5ac83b77b5f83fff85620cbb155e1 (diff)
downloadrust-1d3037a107dc30e3e7c299eb939c60b7340d97ba.tar.gz
rust-1d3037a107dc30e3e7c299eb939c60b7340d97ba.zip
Fix unsized field order
Diffstat (limited to 'example')
-rw-r--r--example/mini_core_hello_world.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs
index 5ca63f270ea..14fd9eeffa6 100644
--- a/example/mini_core_hello_world.rs
+++ b/example/mini_core_hello_world.rs
@@ -48,8 +48,8 @@ struct NoisyDrop {
 }
 
 struct NoisyDropUnsized {
-    text: str,
     inner: NoisyDropInner,
+    text: str,
 }
 
 struct NoisyDropInner;