]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/single_char_pattern.stderr
New upstream version 1.25.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / single_char_pattern.stderr
1 error: single-character string constant used as pattern
2 --> $DIR/single_char_pattern.rs:5:13
3 |
4 5 | x.split("x");
5 | --------^^^- help: try using a char instead: `x.split('x')`
6 |
7 = note: `-D single-char-pattern` implied by `-D warnings`
8
9 error: single-character string constant used as pattern
10 --> $DIR/single_char_pattern.rs:22:16
11 |
12 22 | x.contains("x");
13 | -----------^^^- help: try using a char instead: `x.contains('x')`
14
15 error: single-character string constant used as pattern
16 --> $DIR/single_char_pattern.rs:23:19
17 |
18 23 | x.starts_with("x");
19 | --------------^^^- help: try using a char instead: `x.starts_with('x')`
20
21 error: single-character string constant used as pattern
22 --> $DIR/single_char_pattern.rs:24:17
23 |
24 24 | x.ends_with("x");
25 | ------------^^^- help: try using a char instead: `x.ends_with('x')`
26
27 error: single-character string constant used as pattern
28 --> $DIR/single_char_pattern.rs:25:12
29 |
30 25 | x.find("x");
31 | -------^^^- help: try using a char instead: `x.find('x')`
32
33 error: single-character string constant used as pattern
34 --> $DIR/single_char_pattern.rs:26:13
35 |
36 26 | x.rfind("x");
37 | --------^^^- help: try using a char instead: `x.rfind('x')`
38
39 error: single-character string constant used as pattern
40 --> $DIR/single_char_pattern.rs:27:14
41 |
42 27 | x.rsplit("x");
43 | ---------^^^- help: try using a char instead: `x.rsplit('x')`
44
45 error: single-character string constant used as pattern
46 --> $DIR/single_char_pattern.rs:28:24
47 |
48 28 | x.split_terminator("x");
49 | -------------------^^^- help: try using a char instead: `x.split_terminator('x')`
50
51 error: single-character string constant used as pattern
52 --> $DIR/single_char_pattern.rs:29:25
53 |
54 29 | x.rsplit_terminator("x");
55 | --------------------^^^- help: try using a char instead: `x.rsplit_terminator('x')`
56
57 error: single-character string constant used as pattern
58 --> $DIR/single_char_pattern.rs:30:17
59 |
60 30 | x.splitn(0, "x");
61 | ------------^^^- help: try using a char instead: `x.splitn(0, 'x')`
62
63 error: single-character string constant used as pattern
64 --> $DIR/single_char_pattern.rs:31:18
65 |
66 31 | x.rsplitn(0, "x");
67 | -------------^^^- help: try using a char instead: `x.rsplitn(0, 'x')`
68
69 error: single-character string constant used as pattern
70 --> $DIR/single_char_pattern.rs:32:15
71 |
72 32 | x.matches("x");
73 | ----------^^^- help: try using a char instead: `x.matches('x')`
74
75 error: single-character string constant used as pattern
76 --> $DIR/single_char_pattern.rs:33:16
77 |
78 33 | x.rmatches("x");
79 | -----------^^^- help: try using a char instead: `x.rmatches('x')`
80
81 error: single-character string constant used as pattern
82 --> $DIR/single_char_pattern.rs:34:21
83 |
84 34 | x.match_indices("x");
85 | ----------------^^^- help: try using a char instead: `x.match_indices('x')`
86
87 error: single-character string constant used as pattern
88 --> $DIR/single_char_pattern.rs:35:22
89 |
90 35 | x.rmatch_indices("x");
91 | -----------------^^^- help: try using a char instead: `x.rmatch_indices('x')`
92
93 error: single-character string constant used as pattern
94 --> $DIR/single_char_pattern.rs:36:25
95 |
96 36 | x.trim_left_matches("x");
97 | --------------------^^^- help: try using a char instead: `x.trim_left_matches('x')`
98
99 error: single-character string constant used as pattern
100 --> $DIR/single_char_pattern.rs:37:26
101 |
102 37 | x.trim_right_matches("x");
103 | ---------------------^^^- help: try using a char instead: `x.trim_right_matches('x')`
104
105 error: aborting due to 17 previous errors
106