stabilize const_nonzero_int_methods

This commit is contained in:
Trevor Spiteri 2020-06-29 10:28:39 +02:00
parent c86039b333
commit 6dfe144bdd
2 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,5 @@
// run-pass
#![feature(const_nonzero_int_methods)]
use std::num::NonZeroU8;
const X: NonZeroU8 = unsafe { NonZeroU8::new_unchecked(5) };