diff options
| author | Jake Goulding <jake.goulding@gmail.com> | 2023-12-27 17:11:58 -0500 |
|---|---|---|
| committer | Jake Goulding <jake.goulding@gmail.com> | 2024-01-02 15:34:37 -0500 |
| commit | 53eca9fa877460973f29aca24e6636a4175df469 (patch) | |
| tree | b574f39908fef034b675c7e6da5be4a72ec6ab5f /tests/ui/unsized | |
| parent | 5772818dc8f4c5a0fec1f5b35b33e85764dcd4f4 (diff) | |
| download | rust-53eca9fa877460973f29aca24e6636a4175df469.tar.gz rust-53eca9fa877460973f29aca24e6636a4175df469.zip | |
Adjust compiler tests for unused_tuple_struct_fields -> dead_code
Diffstat (limited to 'tests/ui/unsized')
| -rw-r--r-- | tests/ui/unsized/unchanged-param.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/unsized/unchanged-param.rs b/tests/ui/unsized/unchanged-param.rs index 6bdc89310eb..8aa2ed15344 100644 --- a/tests/ui/unsized/unchanged-param.rs +++ b/tests/ui/unsized/unchanged-param.rs @@ -1,8 +1,8 @@ // run-pass // Test that we allow unsizing even if there is an unchanged param in the // field getting unsized. -struct A<T, U: ?Sized + 'static>(#[allow(unused_tuple_struct_fields)] T, B<T, U>); -struct B<T, U: ?Sized>(#[allow(unused_tuple_struct_fields)] T, U); +struct A<T, U: ?Sized + 'static>(#[allow(dead_code)] T, B<T, U>); +struct B<T, U: ?Sized>(#[allow(dead_code)] T, U); fn main() { let x: A<[u32; 1], [u32; 1]> = A([0; 1], B([0; 1], [0; 1])); |
