2023-06-12 03:07:04 -05:00
|
|
|
$DIR/auxiliary/unused_mod_helper.rs:
|
2023-08-16 20:24:56 -05:00
|
|
|
LL| |#[allow(dead_code)]
|
2023-08-15 21:42:33 -05:00
|
|
|
LL| 0|pub fn never_called_function() {
|
|
|
|
LL| 0| println!("I am never called");
|
|
|
|
LL| 0|}
|
2021-12-20 15:36:56 -06:00
|
|
|
|
2023-06-12 03:07:04 -05:00
|
|
|
$DIR/unused_mod.rs:
|
2023-08-15 21:42:33 -05:00
|
|
|
LL| |#[path = "auxiliary/unused_mod_helper.rs"]
|
|
|
|
LL| |mod unused_module;
|
|
|
|
LL| |
|
|
|
|
LL| 1|fn main() {
|
|
|
|
LL| 1| println!("hello world!");
|
|
|
|
LL| 1|}
|
2023-06-12 03:07:04 -05:00
|
|
|
|