rust/src/test/ui/lint/force-warn/force-lint-allow-all-warnings.rs
Joshua Nelson 1cdc81bdc1 Don't pass -Z unstable-options by default for UI tests
- Pass it explicitly where appropriate
- Update stderr files and warnings; it turns that unstable-options has
  far-reaching effects on diagnostics.
2021-06-06 00:44:54 -04:00

10 lines
166 B
Rust

// compile-flags: --force-warns dead_code -Zunstable-options
// check-pass
#![allow(warnings)]
fn dead_function() {}
//~^ WARN function is never used
fn main() {}