diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-02-16 11:33:22 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-05-16 19:08:41 +0200 |
| commit | ee85bfdcc23de49bbc565142efff87b14a7fc775 (patch) | |
| tree | 9164f38859cb5d230e1c7140134e07239a7bb3d5 /src/test | |
| parent | 2a3f5367a23a769a068c37460db336de427c4b48 (diff) | |
| download | rust-ee85bfdcc23de49bbc565142efff87b14a7fc775.tar.gz rust-ee85bfdcc23de49bbc565142efff87b14a7fc775.zip | |
Make core::nonzero private
It is now an implementation detail of ptr::NonNull and num::NonZero*
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/ctfe/tuple-struct-constructors.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/run-pass/ctfe/tuple-struct-constructors.rs b/src/test/run-pass/ctfe/tuple-struct-constructors.rs index ecc5d376636..ee1ce192fe0 100644 --- a/src/test/run-pass/ctfe/tuple-struct-constructors.rs +++ b/src/test/run-pass/ctfe/tuple-struct-constructors.rs @@ -10,11 +10,10 @@ // https://github.com/rust-lang/rust/issues/41898 -#![feature(nonzero, const_fn)] -extern crate core; -use core::nonzero::NonZero; +#![feature(nonzero)] +use std::num::NonZeroU64; fn main() { - const FOO: NonZero<u64> = unsafe { NonZero::new_unchecked(2) }; + const FOO: NonZeroU64 = unsafe { NonZeroU64::new_unchecked(2) }; if let FOO = FOO {} } |
