Skip to content

Commit

Permalink
delete doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Oct 7, 2021
1 parent bb9340c commit 8244dc7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions library/core/src/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,16 +657,6 @@ impl AsMut<str> for str {
///
/// … and eventually deprecate `Infallible`.
///
/// However there is one case where `!` syntax can be used
/// before `!` is stabilized as a full-fledged type: in the position of a function’s return type.
/// Specifically, it is possible implementations for two different function pointer types:
///
/// ```
/// trait MyTrait {}
/// impl MyTrait for fn() -> ! {}
/// impl MyTrait for fn() -> std::convert::Infallible {}
/// ```
///
/// With `Infallible` being an enum, this code is valid.
/// However when `Infallible` becomes an alias for the never type,
/// the two `impl`s will start to overlap
Expand Down

0 comments on commit 8244dc7

Please sign in to comment.