]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/single_char_pattern.stderr
Add lint `suspicious_splitn`
[rust.git] / tests / ui / single_char_pattern.stderr
index 6d94d8a34e39095dfe8c4086e5c8e05929d7e0ac..22d4b2d460fb047e217091ac1ff741c4a20e93bf 100644 (file)
@@ -75,13 +75,13 @@ LL |     x.rsplit_terminator("x");
 error: single-character string constant used as pattern
   --> $DIR/single_char_pattern.rs:28:17
    |
-LL |     x.splitn(0, "x");
+LL |     x.splitn(2, "x");
    |                 ^^^ help: try using a `char` instead: `'x'`
 
 error: single-character string constant used as pattern
   --> $DIR/single_char_pattern.rs:29:18
    |
-LL |     x.rsplitn(0, "x");
+LL |     x.rsplitn(2, "x");
    |                  ^^^ help: try using a `char` instead: `'x'`
 
 error: single-character string constant used as pattern