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');
36 // Make sure we escape characters correctly.
41 let h = HashSet::<String>::new();
42 h.contains("X"); // should not warn
44 x.replace(";", ",").split(','); // issue #2978
45 x.starts_with('\x03'); // issue #2996