File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -127,15 +127,13 @@ mod prim_bool {}
127
127
/// [`Result<String, !>`] which we can unpack like this:
128
128
///
129
129
/// ```
130
- /// #![feature(exhaustive_patterns)]
131
130
/// use std::str::FromStr;
132
131
/// let Ok(s) = String::from_str("hello");
133
132
/// ```
134
133
///
135
- /// Since the [`Err`] variant contains a `!`, it can never occur. If the `exhaustive_patterns`
136
- /// feature is present this means we can exhaustively match on [`Result<T, !>`] by just taking the
137
- /// [`Ok`] variant. This illustrates another behavior of `!` - it can be used to "delete" certain
138
- /// enum variants from generic types like `Result`.
134
+ /// Since the [`Err`] variant contains a `!`, it can never occur. This means we can exhaustively
135
+ /// match on [`Result<T, !>`] by just taking the [`Ok`] variant. This illustrates another behavior
136
+ /// of `!` - it can be used to "delete" certain enum variants from generic types like `Result`.
139
137
///
140
138
/// ## Infinite loops
141
139
///
You can’t perform that action at this time.
0 commit comments