1 error: usage of `&String::new()` for a function expecting a `&str` argument
2 --> $DIR/unnecessary_owned_empty_string.rs:12:22
4 LL | ref_str_argument(&String::new());
5 | ^^^^^^^^^^^^^^ help: try: `""`
7 = note: `-D clippy::unnecessary-owned-empty-string` implied by `-D warnings`
9 error: usage of `&String::from("")` for a function expecting a `&str` argument
10 --> $DIR/unnecessary_owned_empty_string.rs:15:22
12 LL | ref_str_argument(&String::from(""));
13 | ^^^^^^^^^^^^^^^^^ help: try: `""`
15 error: aborting due to 2 previous errors