blob: d2adbe01c18286f11a66787f469f0d0664a8d479 (
plain)
1
2
3
4
5
6
7
8
9
|
fn main() {
let _: std::num::NonZeroU64 = 1;
//~^ ERROR mismatched types
//~| HELP consider calling `NonZeroU64::new`
let _: Option<std::num::NonZeroU64> = 1;
//~^ ERROR mismatched types
//~| HELP consider calling `NonZeroU64::new`
}
|