about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-01-18 21:04:52 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-01-18 21:05:09 +0000
commit27f079ae24175a60edae59afdc34099d80e898c7 (patch)
treecd2bc31c20a6268a729c9fc6a024d867909347fd /compiler/rustc_interface/src
parentbcd0683e5dce1945b5d940714742e7502883bb5c (diff)
downloadrust-27f079ae24175a60edae59afdc34099d80e898c7.tar.gz
rust-27f079ae24175a60edae59afdc34099d80e898c7.zip
Disallow `A { .. }` if `A` has no fields
```
error: `A` has no fields, `..` needs at least one default field in the struct definition
  --> $DIR/empty-struct.rs:16:17
   |
LL |     let _ = A { .. };
   |             -   ^^
   |             |
   |             this type has no fields
```
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions