about summary refs log tree commit diff
path: root/src/libcore/tests
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-06-08 17:48:36 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-06-08 18:36:23 +0200
commit2b8e2f836f59db23630a06554b8e1a33f6c502f5 (patch)
treef58b7f65248bcb50bdfe9c4bbb8fe7a6a68f0465 /src/libcore/tests
parent0dcb392e9889ab6976973a2f7140d18a80178202 (diff)
downloadrust-2b8e2f836f59db23630a06554b8e1a33f6c502f5.tar.gz
rust-2b8e2f836f59db23630a06554b8e1a33f6c502f5.zip
Correctly format the tests and import TryFrom
Diffstat (limited to 'src/libcore/tests')
-rw-r--r--src/libcore/tests/nonzero.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/tests/nonzero.rs b/src/libcore/tests/nonzero.rs
index 25000998532..0a48d3d0ca9 100644
--- a/src/libcore/tests/nonzero.rs
+++ b/src/libcore/tests/nonzero.rs
@@ -1,4 +1,5 @@
-use core::num::{TryFromIntError, IntErrorKind, NonZeroI32, NonZeroI8, NonZeroU32, NonZeroU8};
+use core::convert::TryFrom;
+use core::num::{IntErrorKind, NonZeroI32, NonZeroI8, NonZeroU32, NonZeroU8, TryFromIntError};
 use core::option::Option::{self, None, Some};
 use std::mem::size_of;