diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-01-18 21:04:52 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-01-18 21:05:09 +0000 |
| commit | 27f079ae24175a60edae59afdc34099d80e898c7 (patch) | |
| tree | cd2bc31c20a6268a729c9fc6a024d867909347fd /compiler/rustc_interface/src | |
| parent | bcd0683e5dce1945b5d940714742e7502883bb5c (diff) | |
| download | rust-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
