1 #![warn(clippy::unimplemented, clippy::unreachable, clippy::todo, clippy::panic)]
2 #![allow(clippy::assertions_on_constants, clippy::eq_op)]
10 panic!("{} {}", "panic with", "multiple arguments");
18 todo!("{} {}", "panic with", "multiple arguments");
25 unimplemented!("message");
26 unimplemented!("{} {}", "panic with", "multiple arguments");
33 unreachable!("message");
34 unreachable!("{} {}", "panic with", "multiple arguments");
39 use core::{panic, todo, unimplemented, unreachable};
48 assert_eq!(true, true);
49 assert_ne!(true, false);
53 assert!(true, "this should not panic");
54 assert_eq!(true, true, "this should not panic");
55 assert_ne!(true, false, "this should not panic");
60 debug_assert_eq!(true, true);
61 debug_assert_ne!(true, false);
64 fn debug_assert_msg() {
65 debug_assert!(true, "test");
66 debug_assert_eq!(true, true, "test");
67 debug_assert_ne!(true, false, "test");