cargo-minimize/full-tests/nested-items2.rs
moxian 2f9a0d45a1 Touch up controller logic to handle nested items well.
The test in the previous commit now passes
2025-04-20 15:54:50 +02:00

24 lines
521 B
Rust

// this should all get deleted in a single swoop *and* not panic about it
/// ~REQUIRE-DELETED l1
mod l1 {
mod l2 {
mod l3 {
mod l4{
mod l5 {
fn foo(){}
fn bar(){}
mod l6 {
fn x1(){}
}
fn x2(){}
}
}
mod l4_2 {
fn y(){}
}
}
}
fn x8(){}
}
/// ~MINIMIZE-ROOT main
fn main(){}