2021-08-18 04:05:59 -05:00
|
|
|
// --force-warn $LINT causes $LINT (which is warn-by-default) to warn
|
|
|
|
// despite being allowed in one submodule (but not the other)
|
2021-11-03 22:00:00 -05:00
|
|
|
// compile-flags: --force-warn dead_code
|
2021-08-18 04:05:59 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
mod one {
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
fn dead_function() {}
|
2022-06-09 22:14:24 -05:00
|
|
|
//~^ WARN function `dead_function` is never used
|
2021-08-18 04:05:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod two {
|
|
|
|
fn dead_function() {}
|
2022-06-09 22:14:24 -05:00
|
|
|
//~^ WARN function `dead_function` is never used
|
2021-08-18 04:05:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|