mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 03:09:54 +00:00
12 lines
276 B
Rust
12 lines
276 B
Rust
// --force-warn $LINT causes $LINT (which is warn-by-default) to warn
|
|
// despite $LINT being allowed in module
|
|
//@ compile-flags: --force-warn dead_code
|
|
//@ check-pass
|
|
|
|
#![allow(dead_code)]
|
|
|
|
fn dead_function() {}
|
|
//~^ WARN function `dead_function` is never used
|
|
|
|
fn main() {}
|