diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-08-10 15:43:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-10 15:43:52 -0400 |
| commit | 5bd4e832d3608a4b06e3bc0b0bf348e664e961ec (patch) | |
| tree | 7c1d1b40c6f63cb455a916c690f9f1d7cb8a27b1 /tests/ui/lint | |
| parent | 18eeac04fc5c2a4c4a8020dbdf1c652077ad0e4e (diff) | |
| parent | aa543963c68061d9ca46037071d66a028626ff3f (diff) | |
| download | rust-5bd4e832d3608a4b06e3bc0b0bf348e664e961ec.tar.gz rust-5bd4e832d3608a4b06e3bc0b0bf348e664e961ec.zip | |
Rollup merge of #144553 - Oneirical:uncountable-integer-4, r=jieyouxu
Rehome 32 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` rust-lang/rust#143902 divided into smaller, easier to review chunks. Part of rust-lang/rust#133895 Methodology: 1. Refer to the previously written `tests/ui/SUMMARY.md` 2. Find an appropriate category for the test, using the original issue thread and the test contents. 3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers) 4. Rename the tests to make their purpose clearer Inspired by the methodology that `@Kivooeo` was using. r? `@jieyouxu`
Diffstat (limited to 'tests/ui/lint')
| -rw-r--r-- | tests/ui/lint/unused-results-lint-triggered-by-derive-debug-29710.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/lint/unused-results-lint-triggered-by-derive-debug-29710.rs b/tests/ui/lint/unused-results-lint-triggered-by-derive-debug-29710.rs new file mode 100644 index 00000000000..51702f69c20 --- /dev/null +++ b/tests/ui/lint/unused-results-lint-triggered-by-derive-debug-29710.rs @@ -0,0 +1,12 @@ +// https://github.com/rust-lang/rust/issues/29710 +//@ check-pass +#![deny(unused_results)] +#![allow(dead_code)] + +#[derive(Debug)] +struct A(usize); + +#[derive(Debug)] +struct B { a: usize } + +fn main() {} |
