diff options
| author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2022-07-25 22:36:03 +0200 |
|---|---|---|
| committer | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2022-08-03 12:17:23 +0200 |
| commit | e3c7e04a4430942205872a8ed3c67531f22985bc (patch) | |
| tree | 895cfbea996b14bae6ceb61d30e55d1c539cdc0c /src/test/ui/generator | |
| parent | e141246cbbce2a6001f3181d3d0f661bbfd9c7ea (diff) | |
| download | rust-e3c7e04a4430942205872a8ed3c67531f22985bc.tar.gz rust-e3c7e04a4430942205872a8ed3c67531f22985bc.zip | |
Warn about dead tuple struct fields
Diffstat (limited to 'src/test/ui/generator')
| -rw-r--r-- | src/test/ui/generator/size-moved-locals.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/generator/size-moved-locals.rs b/src/test/ui/generator/size-moved-locals.rs index 74c60d98154..3c756a86fc5 100644 --- a/src/test/ui/generator/size-moved-locals.rs +++ b/src/test/ui/generator/size-moved-locals.rs @@ -18,7 +18,7 @@ use std::ops::Generator; const FOO_SIZE: usize = 1024; -struct Foo([u8; FOO_SIZE]); +struct Foo(#[allow(unused_tuple_struct_fields)] [u8; FOO_SIZE]); impl Drop for Foo { fn drop(&mut self) {} |
