]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-81218.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / lint / issue-81218.rs
1 // Regression test for #81218
2 //
3 // check-pass
4
5 #![forbid(warnings)]
6
7 #[allow(unused_variables)]
8 fn main() {
9     // We want to ensure that you don't get an error
10     // here. The idea is that a derive might generate
11     // code that would otherwise trigger the "unused variables"
12     // lint, but it is meant to be suppressed.
13     let x: ();
14 }