We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6de3d commit 9562981Copy full SHA for 9562981
src/libstd/error.rs
@@ -55,6 +55,7 @@ use alloc::allocator;
55
use any::TypeId;
56
use cell;
57
use char;
58
+use convert;
59
use fmt::{self, Debug, Display};
60
use mem::transmute;
61
use num;
@@ -347,6 +348,12 @@ impl Error for char::ParseCharError {
347
348
}
349
350
351
+#[unstable(feature = "try_from", issue = "33417")]
352
+impl Error for convert::Infallible {
353
+ fn description(&self) -> &str {
354
+ "an error of this type can never exist"
355
+ }
356
+}
357
358
// copied from any.rs
359
impl Error + 'static {
0 commit comments