mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
better test case
This commit is contained in:
parent
5c1170e92e
commit
0c46f5e2cd
3 changed files with 9 additions and 5 deletions
1
test-cases/unused-code/src/folder/mod.rs
Normal file
1
test-cases/unused-code/src/folder/mod.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
pub fn unused() {}
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
fn unused() {
|
fn unused() {
|
||||||
this_is_required_to_error_haha();
|
other::unused();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
loop {}
|
unused();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mod folder;
|
||||||
mod other;
|
mod other;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
pub(crate) fn unused() {
|
pub fn unused() {
|
||||||
loop {}
|
crate::folder::unused();
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue