]> git.lizzy.rs Git - rust.git/blob - tests/ui/unnecessary_owned_empty_string.stderr
c32372290d1e95ecb0b7768fffe4fa1631cf7442
[rust.git] / tests / ui / unnecessary_owned_empty_string.stderr
1 error: usage of `&String::new()` for a function expecting a `&str` argument
2   --> $DIR/unnecessary_owned_empty_string.rs:12:22
3    |
4 LL |     ref_str_argument(&String::new());
5    |                      ^^^^^^^^^^^^^^ help: try: `""`
6    |
7    = note: `-D clippy::unnecessary-owned-empty-string` implied by `-D warnings`
8
9 error: usage of `&String::from("")` for a function expecting a `&str` argument
10   --> $DIR/unnecessary_owned_empty_string.rs:15:22
11    |
12 LL |     ref_str_argument(&String::from(""));
13    |                      ^^^^^^^^^^^^^^^^^ help: try: `""`
14
15 error: aborting due to 2 previous errors
16