2017-10-10 04:00:47 +00:00
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:5:13
|
|
|
|
|
|
|
|
|
5 | x.split("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
|
= note: `-D single-char-pattern` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:22:16
|
|
|
|
|
|
|
|
|
22 | x.contains("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:23:19
|
|
|
|
|
|
|
|
|
23 | x.starts_with("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:24:17
|
|
|
|
|
|
|
|
|
24 | x.ends_with("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:25:12
|
|
|
|
|
|
|
|
|
25 | x.find("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:26:13
|
|
|
|
|
|
|
|
|
26 | x.rfind("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:27:14
|
|
|
|
|
|
|
|
|
27 | x.rsplit("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:28:24
|
|
|
|
|
|
|
|
|
28 | x.split_terminator("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:29:25
|
|
|
|
|
|
|
|
|
29 | x.rsplit_terminator("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:30:17
|
|
|
|
|
|
|
|
|
30 | x.splitn(0, "x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:31:18
|
|
|
|
|
|
|
|
|
31 | x.rsplitn(0, "x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:32:15
|
|
|
|
|
|
|
|
|
32 | x.matches("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:33:16
|
|
|
|
|
|
|
|
|
33 | x.rmatches("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:34:21
|
|
|
|
|
|
|
|
|
34 | x.match_indices("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:35:22
|
|
|
|
|
|
|
|
|
35 | x.rmatch_indices("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:36:25
|
|
|
|
|
|
|
|
|
36 | x.trim_left_matches("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:37:26
|
|
|
|
|
|
|
|
|
37 | x.trim_right_matches("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
2018-03-02 15:00:01 +00:00
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:39:13
|
|
|
|
|
|
|
|
|
39 | x.split("/n");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^^ help: try using a char instead: `'/n'`
|
2018-03-02 15:00:01 +00:00
|
|
|
|
2018-07-31 10:20:32 +00:00
|
|
|
error: single-character string constant used as pattern
|
|
|
|
--> $DIR/single_char_pattern.rs:44:31
|
|
|
|
|
|
|
|
|
44 | x.replace(";", ",").split(","); // issue #2978
|
|
|
|
| ^^^ help: try using a char instead: `','`
|
|
|
|
|
|
|
|
error: aborting due to 19 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|