Add From<!> for TryFromIntError
This commit is contained in:
parent
4647156985
commit
15bab452f3
1 changed files with 7 additions and 0 deletions
|
|
@ -3595,6 +3595,13 @@ impl fmt::Display for TryFromIntError {
|
|||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "try_from", issue = "33417")]
|
||||
impl From<!> for TryFromIntError {
|
||||
fn from(never: !) -> TryFromIntError {
|
||||
never
|
||||
}
|
||||
}
|
||||
|
||||
// no possible bounds violation
|
||||
macro_rules! try_from_unbounded {
|
||||
($source:ty, $($target:ty),*) => {$(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue