2021-08-18 09:05:59 +00: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-04 03:00:00 +00:00
|
|
|
// compile-flags: --force-warn dead_code
|
2021-08-18 09:05:59 +00:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
mod one {
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
fn dead_function() {}
|
2022-06-10 03:14:24 +00:00
|
|
|
//~^ WARN function `dead_function` is never used
|
2021-08-18 09:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mod two {
|
|
|
|
fn dead_function() {}
|
2022-06-10 03:14:24 +00:00
|
|
|
//~^ WARN function `dead_function` is never used
|
2021-08-18 09:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|