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
26 x.split_terminator('x');
27 x.rsplit_terminator('x');
33 x.rmatch_indices('x');
34 x.trim_start_matches('x');
35 x.trim_end_matches('x');
38 // Make sure we escape characters correctly.
43 let h = HashSet::<String>::new();
44 h.contains("X"); // should not warn
46 x.replace(";", ",").split(','); // issue #2978
47 x.starts_with('\x03'); // issue #2996