1 #![allow(clippy::assertions_on_constants, clippy::eq_op, clippy::let_unit_value)]
2 #![feature(inline_const)]
3 #![warn(clippy::unimplemented, clippy::unreachable, clippy::todo, clippy::panic)]
9 panic!("A balanced diet means a cupcake in each hand");
16 panic!("When nothing goes right, go left")
25 panic!("{} {}", "panic with", "multiple arguments");
33 todo!("{} {}", "panic with", "multiple arguments");
40 unimplemented!("message");
41 unimplemented!("{} {}", "panic with", "multiple arguments");
48 unreachable!("message");
49 unreachable!("{} {}", "panic with", "multiple arguments");
54 use core::{panic, todo, unimplemented, unreachable};
63 assert_eq!(true, true);
64 assert_ne!(true, false);
68 assert!(true, "this should not panic");
69 assert_eq!(true, true, "this should not panic");
70 assert_ne!(true, false, "this should not panic");
75 debug_assert_eq!(true, true);
76 debug_assert_ne!(true, false);
79 fn debug_assert_msg() {
80 debug_assert!(true, "test");
81 debug_assert_eq!(true, true, "test");
82 debug_assert_ne!(true, false, "test");