We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4647156 commit 15bab45Copy full SHA for 15bab45
src/libcore/num/mod.rs
@@ -3595,6 +3595,13 @@ impl fmt::Display for TryFromIntError {
3595
}
3596
3597
3598
+#[unstable(feature = "try_from", issue = "33417")]
3599
+impl From<!> for TryFromIntError {
3600
+ fn from(never: !) -> TryFromIntError {
3601
+ never
3602
+ }
3603
+}
3604
+
3605
// no possible bounds violation
3606
macro_rules! try_from_unbounded {
3607
($source:ty, $($target:ty),*) => {$(
0 commit comments