]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/single_char_push_str.stderr
Auto merge of #78540 - RalfJung:miri, r=RalfJung
[rust.git] / src / tools / clippy / tests / ui / single_char_push_str.stderr
1 error: calling `push_str()` using a single-character string literal
2   --> $DIR/single_char_push_str.rs:6:5
3    |
4 LL |     string.push_str("R");
5    |     ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('R')`
6    |
7    = note: `-D clippy::single-char-push-str` implied by `-D warnings`
8
9 error: calling `push_str()` using a single-character string literal
10   --> $DIR/single_char_push_str.rs:7:5
11    |
12 LL |     string.push_str("'");
13    |     ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('/'')`
14
15 error: calling `push_str()` using a single-character string literal
16   --> $DIR/single_char_push_str.rs:12:5
17    |
18 LL |     string.push_str("/x52");
19    |     ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('/x52')`
20
21 error: calling `push_str()` using a single-character string literal
22   --> $DIR/single_char_push_str.rs:13:5
23    |
24 LL |     string.push_str("/u{0052}");
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('/u{0052}')`
26
27 error: calling `push_str()` using a single-character string literal
28   --> $DIR/single_char_push_str.rs:14:5
29    |
30 LL |     string.push_str(r##"a"##);
31    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('a')`
32
33 error: aborting due to 5 previous errors
34