mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
start with test runner
This commit is contained in:
parent
bf8f13c62a
commit
c70d6fa26f
6 changed files with 86 additions and 1 deletions
12
full-tests/to-empty-main/src/main.rs
Normal file
12
full-tests/to-empty-main/src/main.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use std::collecions::HashMap;
|
||||
|
||||
/// ~REQUIRE-DELETED
|
||||
fn user(map: HashMap<(), ()>) {
|
||||
map.insert((), ());
|
||||
}
|
||||
|
||||
/// ~MINIMIZE-ROOT main
|
||||
fn main() {
|
||||
let map = HashMap::new();
|
||||
user(map);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue