Rollup merge of #87183 - RalfJung:option-doctest, r=jyn514
fix typo in compile_fail doctest Fixes a typo introduced by https://github.com/rust-lang/rust/pull/86211. For some reason this typo makes Miri go all crazy when running libcore doctests (https://github.com/rust-lang/miri/issues/1852). Kudos to ``@hyd-dev`` for noticing the typo. Cc ``@tlyu`` ``@joshtriplett``
This commit is contained in:
commit
c1ee9a3a03
@ -356,7 +356,7 @@
|
|||||||
//! // must have the same concrete type.
|
//! // must have the same concrete type.
|
||||||
//! fn make_iter(do_insert: bool) -> impl Iterator<Item = i32> {
|
//! fn make_iter(do_insert: bool) -> impl Iterator<Item = i32> {
|
||||||
//! // Explicit returns to illustrate return types not matching
|
//! // Explicit returns to illustrate return types not matching
|
||||||
//! match x {
|
//! match do_insert {
|
||||||
//! true => return (0..4).chain(once(42)).chain(4..8),
|
//! true => return (0..4).chain(once(42)).chain(4..8),
|
||||||
//! false => return (0..4).chain(empty()).chain(4..8),
|
//! false => return (0..4).chain(empty()).chain(4..8),
|
||||||
//! }
|
//! }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user