summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/single_char_add_str.stderr
blob: a6f2b3e037b4acac2bfda2098ede22ca6e880744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
error: calling `push_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:14:5
   |
LL |     string.push_str("R");
   |     ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('R')`
   |
   = note: `-D clippy::single-char-add-str` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::single_char_add_str)]`

error: calling `push_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:15:5
   |
LL |     string.push_str("'");
   |     ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('\'')`

error: calling `push_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:20:5
   |
LL |     string.push_str("\x52");
   |     ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('\x52')`

error: calling `push_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:21:5
   |
LL |     string.push_str("\u{0052}");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('\u{0052}')`

error: calling `push_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:22:5
   |
LL |     string.push_str(r##"a"##);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('a')`

error: calling `push_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:24:5
   |
LL |     get_string!().push_str("ö");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `get_string!().push('ö')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:29:5
   |
LL |     string.insert_str(0, "R");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, 'R')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:30:5
   |
LL |     string.insert_str(1, "'");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(1, '\'')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:35:5
   |
LL |     string.insert_str(0, "\x52");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, '\x52')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:36:5
   |
LL |     string.insert_str(0, "\u{0052}");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, '\u{0052}')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:38:5
   |
LL |     string.insert_str(x, r##"a"##);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(x, 'a')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:40:5
   |
LL |     string.insert_str(Y, r##"a"##);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(Y, 'a')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:41:5
   |
LL |     string.insert_str(Y, r##"""##);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(Y, '"')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:42:5
   |
LL |     string.insert_str(Y, r##"'"##);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(Y, '\'')`

error: calling `insert_str()` using a single-character string literal
  --> $DIR/single_char_add_str.rs:44:5
   |
LL |     get_string!().insert_str(1, "?");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `get_string!().insert(1, '?')`

error: aborting due to 15 previous errors