Skip to content

Commit 0e3b34c

Browse files
Hopefully fix CI
1 parent c592a38 commit 0e3b34c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/design_notes/copy_ergonomics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ desirable but is error-prone given the `Iterator/IntoIterator` impls on ranges.
4141
The example here does not compile today (since Range is not Copy), but would be
4242
unintuitive if it did.
4343

44-
```rust
44+
```rust,compile_fail
4545
let mut x = 0..10;
4646
let mut c = move || x.next();
4747
println!("{:?}", x.next()); // prints 0

0 commit comments

Comments
 (0)