diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/convert.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index 65aa91e2dab..c6c41fb99a4 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -596,3 +596,10 @@ impl PartialEq for Infallible { #[stable(feature = "convert_infallible", since = "1.34.0")] impl Eq for Infallible {} + +#[stable(feature = "convert_infallible", since = "1.34.0")] +impl From<!> for Infallible { + fn from(x: !) -> Self { + x + } +} |
