]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/single_char_pattern.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / single_char_pattern.stderr
index 044b4909a373b319a246f5c39b4ac255cd626d9f..464ed375976fcb38d030868e1484918441f2be5a 100644 (file)
 error: single-character string constant used as pattern
--> $DIR/single_char_pattern.rs:5:13
-  |
-5 |     x.split("x");
-  |             ^^^ help: try using a char instead: `'x'`
-  |
-  = note: `-D single-char-pattern` implied by `-D warnings`
 --> $DIR/single_char_pattern.rs:9:13
+   |
+LL |     x.split("x");
+   |             ^^^ help: try using a char instead: `'x'`
+   |
+   = note: `-D clippy::single-char-pattern` implied by `-D warnings`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:22:16
+  --> $DIR/single_char_pattern.rs:26:16
    |
-22 |     x.contains("x");
+LL |     x.contains("x");
    |                ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:23:19
+  --> $DIR/single_char_pattern.rs:27:19
    |
-23 |     x.starts_with("x");
+LL |     x.starts_with("x");
    |                   ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:24:17
+  --> $DIR/single_char_pattern.rs:28:17
    |
-24 |     x.ends_with("x");
+LL |     x.ends_with("x");
    |                 ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:25:12
+  --> $DIR/single_char_pattern.rs:29:12
    |
-25 |     x.find("x");
+LL |     x.find("x");
    |            ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:26:13
+  --> $DIR/single_char_pattern.rs:30:13
    |
-26 |     x.rfind("x");
+LL |     x.rfind("x");
    |             ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:27:14
+  --> $DIR/single_char_pattern.rs:31:14
    |
-27 |     x.rsplit("x");
+LL |     x.rsplit("x");
    |              ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:28:24
+  --> $DIR/single_char_pattern.rs:32:24
    |
-28 |     x.split_terminator("x");
+LL |     x.split_terminator("x");
    |                        ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:29:25
+  --> $DIR/single_char_pattern.rs:33:25
    |
-29 |     x.rsplit_terminator("x");
+LL |     x.rsplit_terminator("x");
    |                         ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:30:17
+  --> $DIR/single_char_pattern.rs:34:17
    |
-30 |     x.splitn(0, "x");
+LL |     x.splitn(0, "x");
    |                 ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:31:18
+  --> $DIR/single_char_pattern.rs:35:18
    |
-31 |     x.rsplitn(0, "x");
+LL |     x.rsplitn(0, "x");
    |                  ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:32:15
+  --> $DIR/single_char_pattern.rs:36:15
    |
-32 |     x.matches("x");
+LL |     x.matches("x");
    |               ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:33:16
+  --> $DIR/single_char_pattern.rs:37:16
    |
-33 |     x.rmatches("x");
+LL |     x.rmatches("x");
    |                ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:34:21
+  --> $DIR/single_char_pattern.rs:38:21
    |
-34 |     x.match_indices("x");
+LL |     x.match_indices("x");
    |                     ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:35:22
+  --> $DIR/single_char_pattern.rs:39:22
    |
-35 |     x.rmatch_indices("x");
+LL |     x.rmatch_indices("x");
    |                      ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:36:25
+  --> $DIR/single_char_pattern.rs:40:26
    |
-36 |     x.trim_left_matches("x");
-   |                         ^^^ help: try using a char instead: `'x'`
+LL |     x.trim_start_matches("x");
+   |                          ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:37:26
+  --> $DIR/single_char_pattern.rs:41:24
    |
-37 |     x.trim_right_matches("x");
-   |                          ^^^ help: try using a char instead: `'x'`
+LL |     x.trim_end_matches("x");
+   |                        ^^^ help: try using a char instead: `'x'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:39:13
+  --> $DIR/single_char_pattern.rs:43:13
    |
-39 |     x.split("/n");
+LL |     x.split("/n");
    |             ^^^^ help: try using a char instead: `'/n'`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:44:31
+  --> $DIR/single_char_pattern.rs:44:13
    |
-44 |     x.replace(";", ",").split(","); // issue #2978
+LL |     x.split("'");
+   |             ^^^ help: try using a char instead: `'/''`
+
+error: single-character string constant used as pattern
+  --> $DIR/single_char_pattern.rs:45:13
+   |
+LL |     x.split("/'");
+   |             ^^^^ help: try using a char instead: `'/''`
+
+error: single-character string constant used as pattern
+  --> $DIR/single_char_pattern.rs:50:31
+   |
+LL |     x.replace(";", ",").split(","); // issue #2978
    |                               ^^^ help: try using a char instead: `','`
 
 error: single-character string constant used as pattern
-  --> $DIR/single_char_pattern.rs:45:19
+  --> $DIR/single_char_pattern.rs:51:19
    |
-45 |     x.starts_with("/x03"); // issue #2996
+LL |     x.starts_with("/x03"); // issue #2996
    |                   ^^^^^^ help: try using a char instead: `'/x03'`
 
-error: aborting due to 20 previous errors
+error: single-character string constant used as pattern
+  --> $DIR/single_char_pattern.rs:58:13
+   |
+LL |     x.split(r"a");
+   |             ^^^^ help: try using a char instead: `'a'`
+
+error: single-character string constant used as pattern
+  --> $DIR/single_char_pattern.rs:59:13
+   |
+LL |     x.split(r#"a"#);
+   |             ^^^^^^ help: try using a char instead: `'a'`
+
+error: single-character string constant used as pattern
+  --> $DIR/single_char_pattern.rs:60:13
+   |
+LL |     x.split(r###"a"###);
+   |             ^^^^^^^^^^ help: try using a char instead: `'a'`
+
+error: single-character string constant used as pattern
+  --> $DIR/single_char_pattern.rs:61:13
+   |
+LL |     x.split(r###"'"###);
+   |             ^^^^^^^^^^ help: try using a char instead: `'/''`
+
+error: single-character string constant used as pattern
+  --> $DIR/single_char_pattern.rs:62:13
+   |
+LL |     x.split(r###"#"###);
+   |             ^^^^^^^^^^ help: try using a char instead: `'#'`
+
+error: aborting due to 27 previous errors