]>
Commit | Line | Data |
---|---|---|
2c00a5a8 | 1 | error[E0005]: refutable pattern in `for` loop binding: `None` not covered |
0731742a | 2 | --> $DIR/E0297.rs:4:9 |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | for Some(x) in xs {} |
2c00a5a8 | 5 | | ^^^^^^^ pattern `None` not covered |
94222f64 | 6 | | |
5e7ed085 FG |
7 | note: `Option<i32>` defined here |
8 | --> $SRC_DIR/core/src/option.rs:LL:COL | |
ba9703b0 | 9 | | |
064997fb FG |
10 | LL | pub enum Option<T> { |
11 | | ------------------ | |
12 | ... | |
13 | LL | None, | |
14 | | ^^^^ not covered | |
1b1a35ee | 15 | = note: the matched value is of type `Option<i32>` |
2c00a5a8 XL |
16 | |
17 | error: aborting due to previous error | |
18 | ||
0531ce1d | 19 | For more information about this error, try `rustc --explain E0005`. |