]> git.lizzy.rs Git - rust.git/commit
Disallow parsing of struct variants with 0 fields
authorTom Jakubowski <tom@crystae.net>
Mon, 17 Nov 2014 02:13:21 +0000 (18:13 -0800)
committerTom Jakubowski <tom@crystae.net>
Mon, 17 Nov 2014 03:10:47 +0000 (19:10 -0800)
commit8000482e86808f7e36b8d7e595cea7c712d09a6c
tree12fe025ed9a808307804eb2658f9e2a6173cd9c9
parent0b7b4f075a531eb160becf2818c1e9a63fa10cd3
Disallow parsing of struct variants with 0 fields

Make struct variant syntax more consistent with struct syntax and fix an
assert in middle::typeck.

Fix #19003
src/libsyntax/parse/parser.rs
src/test/compile-fail/struct-variant-no-fields.rs [new file with mode: 0644]