about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-19 01:22:37 +0100
committerGitHub <noreply@github.com>2025-01-19 01:22:37 +0100
commit7e1ce54b22b918bd5a5cf3864c83f1c22e53d9fc (patch)
tree3a4b9dd1e8265a48e12537592e37248f4232caae /compiler/rustc_interface/src
parent85b69bf753a7cf34442c75e7b6910d8862bf25fb (diff)
parent27f079ae24175a60edae59afdc34099d80e898c7 (diff)
downloadrust-7e1ce54b22b918bd5a5cf3864c83f1c22e53d9fc.tar.gz
rust-7e1ce54b22b918bd5a5cf3864c83f1c22e53d9fc.zip
Rollup merge of #135703 - estebank:empty-dfv, r=compiler-errors
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