Implement Error for !.
This commit is contained in:
parent
11a33760ec
commit
a5cf55125c
@ -216,6 +216,11 @@ impl<'a> From<&'a str> for Box<Error> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "never_error", since = "1.18.0")]
|
||||
impl Error for ! {
|
||||
fn description(&self) -> &str { *self }
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Error for str::ParseBoolError {
|
||||
fn description(&self) -> &str { "failed to parse bool" }
|
||||
|
@ -273,6 +273,7 @@
|
||||
#![feature(linkage)]
|
||||
#![feature(macro_reexport)]
|
||||
#![feature(needs_panic_runtime)]
|
||||
#![feature(never_type)]
|
||||
#![feature(num_bits_bytes)]
|
||||
#![feature(old_wrapping)]
|
||||
#![feature(on_unimplemented)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user