blob: e645b574075075d1c57d340f1e15b94473c24fda (
plain)
1
2
3
4
5
6
7
8
9
10
|
//@ run-pass
//
// https://github.com/rust-lang/rust/issues/41898
use std::num::NonZero;
fn main() {
const FOO: NonZero<u64> = unsafe { NonZero::new_unchecked(2) };
if let FOO = FOO {}
}
|