diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-26948.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-26948.rs b/src/test/ui/issues/issue-26948.rs new file mode 100644 index 000000000..832c9641d --- /dev/null +++ b/src/test/ui/issues/issue-26948.rs @@ -0,0 +1,6 @@ +fn main() { + enum Foo { A { x: u32 } } + let orig = Foo::A { x: 5 }; + Foo::A { x: 6, ..orig }; + //~^ ERROR functional record update syntax requires a struct +} |