1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use proc_utils::*; #[test] fn test_item_suppression() { #[suppress_item] fn invalid_rust() { return nonexistent_value; } } #[test] fn test_overwrite_with() { #[overwrite_with { fn hello_world() -> usize { 3 } }] fn invalid_rust() { return nonexistent_value; } assert_eq!(hello_world(), 3); }