2 #![allow(dead_code, unused_must_use)]
6 #[allow(clippy::unnecessary_operation)]
11 // Ensure that suggestion is escaped correctly
13 !"".starts_with('\n');
16 fn chars_cmp_with_unwrap() {
17 let s = String::from("foo");
18 if s.starts_with('f') {
30 if !s.starts_with('f') {
31 // !s.starts_with('f')
34 if !s.ends_with('o') {
38 if !s.ends_with('\n') {
44 #[allow(clippy::unnecessary_operation)]
51 // Ensure that suggestion is escaped correctly