Updated for new const trait bounds syntax
This commit is contained in:
parent
3051bb9c81
commit
92b57c0476
2 changed files with 2 additions and 2 deletions
|
@ -535,7 +535,7 @@ where
|
|||
#[rustc_const_unstable(feature = "const_convert", issue = "none")]
|
||||
impl<T, U> const Into<U> for T
|
||||
where
|
||||
U: From<T>,
|
||||
U: ~const From<T>,
|
||||
{
|
||||
fn into(self) -> U {
|
||||
U::from(self)
|
||||
|
|
|
@ -1910,7 +1910,7 @@ impl<T, E> const ops::Try for Result<T, E> {
|
|||
|
||||
#[unstable(feature = "try_trait_v2", issue = "84277")]
|
||||
#[rustc_const_unstable(feature = "const_convert", issue = "none")]
|
||||
impl<T, E, F: From<E>> const ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> {
|
||||
impl<T, E, F: ~const From<E>> const ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> {
|
||||
#[inline]
|
||||
fn from_residual(residual: Result<convert::Infallible, E>) -> Self {
|
||||
match residual {
|
||||
|
|
Loading…
Add table
Reference in a new issue