mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
Support single file tests
This commit is contained in:
parent
c9198c0111
commit
45c0581fa9
3 changed files with 24 additions and 13 deletions
13
full-tests/to-empty-main.rs
Normal file
13
full-tests/to-empty-main.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
/// ~REQUIRE-DELETED user-fn
|
||||
fn user(mut map: HashMap<(), ()>) {
|
||||
map.insert((), ());
|
||||
}
|
||||
|
||||
/// ~MINIMIZE-ROOT main
|
||||
fn main() {
|
||||
let map = HashMap::new();
|
||||
user(map);
|
||||
"~REQUIRE-DELETED main-body";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue