Add test case for #86177 and #85718

This commit is contained in:
Wesley Wiser 2021-12-20 16:36:38 -05:00
parent 23f69235ad
commit 341d65d975
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
1| |#[path = "lib/unused_mod_helper.rs"]
2| |mod unused_module;
3| |
4| 1|fn main() {
5| 1| println!("hello world!");
6| 1|}

View File

@ -0,0 +1,3 @@
pub fn never_called_function() {
println!("I am never called");
}

View File

@ -0,0 +1,6 @@
#[path = "lib/unused_mod_helper.rs"]
mod unused_module;
fn main() {
println!("hello world!");
}