Skip to content

Commit bbdc338

Browse files
committed
fix tests
1 parent 1a41ce6 commit bbdc338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compile-fail/validity/nonzero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ pub(crate) struct NonZero<T>(pub(crate) T);
77

88
fn main() {
99
// Make sure that we detect this even when no function call is happening along the way
10-
let _x = Some(NonZero(0)); //~ ERROR encountered 0, but expected something greater or equal to 1
10+
let _x = Some(unsafe { NonZero(0) }); //~ ERROR encountered 0, but expected something greater or equal to 1
1111
}

0 commit comments

Comments
 (0)