]> git.lizzy.rs Git - rust.git/blob - tests/ui/single_char_pattern.stderr
iterate List by value
[rust.git] / tests / ui / single_char_pattern.stderr
1 error: single-character string constant used as pattern
2   --> $DIR/single_char_pattern.rs:9:13
3    |
4 LL |     x.split("x");
5    |             ^^^ help: try using a `char` instead: `'x'`
6    |
7    = note: `-D clippy::single-char-pattern` implied by `-D warnings`
8
9 error: single-character string constant used as pattern
10   --> $DIR/single_char_pattern.rs:26:16
11    |
12 LL |     x.contains("x");
13    |                ^^^ help: try using a `char` instead: `'x'`
14
15 error: single-character string constant used as pattern
16   --> $DIR/single_char_pattern.rs:27:19
17    |
18 LL |     x.starts_with("x");
19    |                   ^^^ help: try using a `char` instead: `'x'`
20
21 error: single-character string constant used as pattern
22   --> $DIR/single_char_pattern.rs:28:17
23    |
24 LL |     x.ends_with("x");
25    |                 ^^^ help: try using a `char` instead: `'x'`
26
27 error: single-character string constant used as pattern
28   --> $DIR/single_char_pattern.rs:29:12
29    |
30 LL |     x.find("x");
31    |            ^^^ help: try using a `char` instead: `'x'`
32
33 error: single-character string constant used as pattern
34   --> $DIR/single_char_pattern.rs:30:13
35    |
36 LL |     x.rfind("x");
37    |             ^^^ help: try using a `char` instead: `'x'`
38
39 error: single-character string constant used as pattern
40   --> $DIR/single_char_pattern.rs:31:14
41    |
42 LL |     x.rsplit("x");
43    |              ^^^ help: try using a `char` instead: `'x'`
44
45 error: single-character string constant used as pattern
46   --> $DIR/single_char_pattern.rs:32:24
47    |
48 LL |     x.split_terminator("x");
49    |                        ^^^ help: try using a `char` instead: `'x'`
50
51 error: single-character string constant used as pattern
52   --> $DIR/single_char_pattern.rs:33:25
53    |
54 LL |     x.rsplit_terminator("x");
55    |                         ^^^ help: try using a `char` instead: `'x'`
56
57 error: single-character string constant used as pattern
58   --> $DIR/single_char_pattern.rs:34:17
59    |
60 LL |     x.splitn(0, "x");
61    |                 ^^^ help: try using a `char` instead: `'x'`
62
63 error: single-character string constant used as pattern
64   --> $DIR/single_char_pattern.rs:35:18
65    |
66 LL |     x.rsplitn(0, "x");
67    |                  ^^^ help: try using a `char` instead: `'x'`
68
69 error: single-character string constant used as pattern
70   --> $DIR/single_char_pattern.rs:36:15
71    |
72 LL |     x.matches("x");
73    |               ^^^ help: try using a `char` instead: `'x'`
74
75 error: single-character string constant used as pattern
76   --> $DIR/single_char_pattern.rs:37:16
77    |
78 LL |     x.rmatches("x");
79    |                ^^^ help: try using a `char` instead: `'x'`
80
81 error: single-character string constant used as pattern
82   --> $DIR/single_char_pattern.rs:38:21
83    |
84 LL |     x.match_indices("x");
85    |                     ^^^ help: try using a `char` instead: `'x'`
86
87 error: single-character string constant used as pattern
88   --> $DIR/single_char_pattern.rs:39:22
89    |
90 LL |     x.rmatch_indices("x");
91    |                      ^^^ help: try using a `char` instead: `'x'`
92
93 error: single-character string constant used as pattern
94   --> $DIR/single_char_pattern.rs:40:26
95    |
96 LL |     x.trim_start_matches("x");
97    |                          ^^^ help: try using a `char` instead: `'x'`
98
99 error: single-character string constant used as pattern
100   --> $DIR/single_char_pattern.rs:41:24
101    |
102 LL |     x.trim_end_matches("x");
103    |                        ^^^ help: try using a `char` instead: `'x'`
104
105 error: single-character string constant used as pattern
106   --> $DIR/single_char_pattern.rs:43:13
107    |
108 LL |     x.split("/n");
109    |             ^^^^ help: try using a `char` instead: `'/n'`
110
111 error: single-character string constant used as pattern
112   --> $DIR/single_char_pattern.rs:44:13
113    |
114 LL |     x.split("'");
115    |             ^^^ help: try using a `char` instead: `'/''`
116
117 error: single-character string constant used as pattern
118   --> $DIR/single_char_pattern.rs:45:13
119    |
120 LL |     x.split("/'");
121    |             ^^^^ help: try using a `char` instead: `'/''`
122
123 error: single-character string constant used as pattern
124   --> $DIR/single_char_pattern.rs:50:31
125    |
126 LL |     x.replace(";", ",").split(","); // issue #2978
127    |                               ^^^ help: try using a `char` instead: `','`
128
129 error: single-character string constant used as pattern
130   --> $DIR/single_char_pattern.rs:51:19
131    |
132 LL |     x.starts_with("/x03"); // issue #2996
133    |                   ^^^^^^ help: try using a `char` instead: `'/x03'`
134
135 error: single-character string constant used as pattern
136   --> $DIR/single_char_pattern.rs:58:13
137    |
138 LL |     x.split(r"a");
139    |             ^^^^ help: try using a `char` instead: `'a'`
140
141 error: single-character string constant used as pattern
142   --> $DIR/single_char_pattern.rs:59:13
143    |
144 LL |     x.split(r#"a"#);
145    |             ^^^^^^ help: try using a `char` instead: `'a'`
146
147 error: single-character string constant used as pattern
148   --> $DIR/single_char_pattern.rs:60:13
149    |
150 LL |     x.split(r###"a"###);
151    |             ^^^^^^^^^^ help: try using a `char` instead: `'a'`
152
153 error: single-character string constant used as pattern
154   --> $DIR/single_char_pattern.rs:61:13
155    |
156 LL |     x.split(r###"'"###);
157    |             ^^^^^^^^^^ help: try using a `char` instead: `'/''`
158
159 error: single-character string constant used as pattern
160   --> $DIR/single_char_pattern.rs:62:13
161    |
162 LL |     x.split(r###"#"###);
163    |             ^^^^^^^^^^ help: try using a `char` instead: `'#'`
164
165 error: aborting due to 27 previous errors
166