This code currently (as of DMD 2.103.0) produces two deprecation warnings, instead of zero:
```
deprecated struct Foo {}
deprecated Foo foo;
```
Declaring a variable of type Foo within other contexts, such as deprecated functions or other deprecated aggregate types, produces an expected zero warnings.
Comment #1 by robert.schadek — 2024-12-13T19:28:15Z