rust/tests/ui/single_char_pattern.stderr

125 lines
4.0 KiB
Plaintext
Raw Normal View History

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