diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-12-25 13:14:12 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-12-25 13:15:28 +0000 |
| commit | 8bb74c0187482f92cd1347d670d5680a457c37a9 (patch) | |
| tree | 3486e682a3d4e41d3b616107c240b168e096491f /tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs | |
| parent | 08cc634f1a26f30801daa1cbe7b866b12aaf1edd (diff) | |
| download | rust-8bb74c0187482f92cd1347d670d5680a457c37a9.tar.gz rust-8bb74c0187482f92cd1347d670d5680a457c37a9.zip | |
Pass DeadItem and lint as consistent group in dead-code.
Diffstat (limited to 'tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs')
| -rw-r--r-- | tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs b/tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs index 2003e1e293a..a478153b3f4 100644 --- a/tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs +++ b/tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs @@ -15,6 +15,10 @@ struct Bar { _h: usize, } +// Issue 119267: this should not ICE. +#[derive(Debug)] +struct Foo(usize, #[allow(unused)] usize); + fn main() { Bar { a: 1, |
