mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 08:25: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
8
full-tests/to-empty-main/Cargo.toml
Normal file
8
full-tests/to-empty-main/Cargo.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "to-empty-main"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
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