fix tests
This commit is contained in:
parent
1a41ce6319
commit
bbdc3380d5
@ -7,5 +7,5 @@ pub(crate) struct NonZero<T>(pub(crate) T);
|
||||
|
||||
fn main() {
|
||||
// Make sure that we detect this even when no function call is happening along the way
|
||||
let _x = Some(NonZero(0)); //~ ERROR encountered 0, but expected something greater or equal to 1
|
||||
let _x = Some(unsafe { NonZero(0) }); //~ ERROR encountered 0, but expected something greater or equal to 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user