1 error[E0308]: mismatched types
2 --> $DIR/non_zero_assigned_something.rs:2:35
4 LL | let _: std::num::NonZeroU64 = 1;
5 | -------------------- ^ expected struct `NonZeroU64`, found integer
9 help: consider calling `NonZeroU64::new`
11 LL | let _: std::num::NonZeroU64 = NonZeroU64::new(1).unwrap();
12 | ++++++++++++++++ ++++++++++
14 error[E0308]: mismatched types
15 --> $DIR/non_zero_assigned_something.rs:6:43
17 LL | let _: Option<std::num::NonZeroU64> = 1;
18 | ---------------------------- ^ expected enum `Option`, found integer
20 | expected due to this
22 = note: expected enum `Option<NonZeroU64>`
23 found type `{integer}`
24 help: consider calling `NonZeroU64::new`
26 LL | let _: Option<std::num::NonZeroU64> = NonZeroU64::new(1);
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0308`.