1 #![warn(clippy::panic_params)]
2 #![allow(clippy::assertions_on_constants)]
9 assert!(true, "here be missing values: {}");
21 assert!("foo bar".contains(&format!("foo {}", "bar")));
25 panic!("{}", "This is {ok}");
30 1337 => panic!("{so is this"),
31 666 => panic!("so is this}"),
32 _ => panic!("}so is that{"),
39 assert!({ 1 == ONE });
40 assert!(if 1 == ONE { ONE == 1 } else { false });
44 panic!("{{ why should this not be ok? }}");
45 panic!(" or {{ that ?");
46 panic!(" or }} this ?");
47 panic!(" {or {{ that ?");
48 panic!(" }or }} this ?");