Don't lint incompatible_msrv in test code

This commit is contained in:
Jason Newcomb 2024-02-10 09:35:29 -05:00
parent 28443e63fb
commit 9012d55c02
2 changed files with 11 additions and 5 deletions

View file

@ -20,4 +20,9 @@ fn foo() {
//~^ ERROR: is `1.3.0` but this item is stable since `1.4.0`
}
#[test]
fn test() {
sleep(Duration::new(1, 0));
}
fn main() {}