]> git.lizzy.rs Git - rust.git/blob - tests/ui/single_char_push_str.stderr
1f53558912121835694fd6145285995c2905d6f0
[rust.git] / 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:12: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:13: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:18: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:19: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:20: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