blob: f02aa9040ebc50351daff68dd97af117fe9e1abd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Regression test for #81218
//
// check-pass
#![forbid(warnings)]
#[allow(unused_variables)]
fn main() {
// We want to ensure that you don't get an error
// here. The idea is that a derive might generate
// code that would otherwise trigger the "unused variables"
// lint, but it is meant to be suppressed.
let x: ();
}
|