Skip to content

Commit c75b3d4

Browse files
Added "ignore" for an example that is supposed to fail compilation
1 parent 0ea18a7 commit c75b3d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flow_control/if_let.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Another benefit: `if let` allows to match enum non-parameterized variants, even
9898

9999
Would you like a challenge? Fix the following example to use `if let`:
100100

101-
```rust,editable
101+
```rust,editable,ignore
102102
// This enum purposely doesn't #[derive(PartialEq)],
103103
// neither we implement PartialEq for it. That's why comparing Foo::Bar==a fails below.
104104
enum Foo {Bar}

0 commit comments

Comments
 (0)