]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/option.rs
Fix two false positive lints
[rust.git] / library / core / src / option.rs
index 6e9b388a2bd0721604d0095b237787eb27bbd287..7b9c6e43960f7b61a2e15931dd090ac1a2656ecb 100644 (file)
@@ -2089,6 +2089,11 @@ fn from_residual(residual: Option<convert::Infallible>) -> Self {
     }
 }
 
+#[unstable(feature = "try_trait_v2_residual", issue = "91285")]
+impl<T> ops::Residual<T> for Option<convert::Infallible> {
+    type TryType = Option<T>;
+}
+
 impl<T> Option<Option<T>> {
     /// Converts from `Option<Option<T>>` to `Option<T>`.
     ///