3 #![allow(unused_must_use)]
5 use std::collections::HashSet;
18 // Can't use this lint for unicode code points which don't fit in a char
20 x.split_inclusive('x');
27 x.split_terminator('x');
28 x.rsplit_terminator('x');
36 x.rmatch_indices('x');
37 x.trim_start_matches('x');
38 x.trim_end_matches('x');
42 x.replacen('x', "y", 3);
43 // Make sure we escape characters correctly.
48 let h = HashSet::<String>::new();
49 h.contains("X"); // should not warn
51 x.replace(';', ",").split(','); // issue #2978
52 x.starts_with('\x03'); // issue #2996
64 // Must escape backslash in raw strings when converting to char #8060