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