Skip to content

Commit 15bab45

Browse files
committed
Add From<!> for TryFromIntError
1 parent 4647156 commit 15bab45

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: src/libcore/num/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -3595,6 +3595,13 @@ impl fmt::Display for TryFromIntError {
35953595
}
35963596
}
35973597

3598+
#[unstable(feature = "try_from", issue = "33417")]
3599+
impl From<!> for TryFromIntError {
3600+
fn from(never: !) -> TryFromIntError {
3601+
never
3602+
}
3603+
}
3604+
35983605
// no possible bounds violation
35993606
macro_rules! try_from_unbounded {
36003607
($source:ty, $($target:ty),*) => {$(

0 commit comments

Comments
 (0)