Make more From impls const
This commit is contained in:
@@ -125,7 +125,8 @@ impl TryFromSliceError {
|
||||
}
|
||||
|
||||
#[stable(feature = "try_from_slice_error", since = "1.36.0")]
|
||||
impl From<Infallible> for TryFromSliceError {
|
||||
#[rustc_const_unstable(feature = "const_convert", issue = "88674")]
|
||||
impl const From<Infallible> for TryFromSliceError {
|
||||
fn from(x: Infallible) -> TryFromSliceError {
|
||||
match x {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user