]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/unnecessary_owned_empty_strings.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / tools / clippy / 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:15:22
11 |
12 LL | ref_str_argument(&String::from(""));
13 | ^^^^^^^^^^^^^^^^^ help: try: `""`
14
15 error: aborting due to 2 previous errors
16