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.
2 parents dedf9d3 + a5cf551 commit 4e90331Copy full SHA for 4e90331
src/libstd/error.rs
@@ -216,6 +216,11 @@ impl<'a> From<&'a str> for Box<Error> {
216
}
217
218
219
+#[stable(feature = "never_error", since = "1.18.0")]
220
+impl Error for ! {
221
+ fn description(&self) -> &str { *self }
222
+}
223
+
224
#[stable(feature = "rust1", since = "1.0.0")]
225
impl Error for str::ParseBoolError {
226
fn description(&self) -> &str { "failed to parse bool" }
src/libstd/lib.rs
@@ -272,6 +272,7 @@
272
#![feature(linkage)]
273
#![feature(macro_reexport)]
274
#![feature(needs_panic_runtime)]
275
+#![feature(never_type)]
276
#![feature(num_bits_bytes)]
277
#![feature(old_wrapping)]
278
#![feature(on_unimplemented)]
0 commit comments