Remove compile-pass from error codes' explanation
This commit is contained in:
parent
ce77031e96
commit
db93d01493
|
@ -331,7 +331,7 @@ An if-let pattern attempts to match the pattern, and enters the body if the
|
||||||
match was successful. If the match is irrefutable (when it cannot fail to
|
match was successful. If the match is irrefutable (when it cannot fail to
|
||||||
match), use a regular `let`-binding instead. For instance:
|
match), use a regular `let`-binding instead. For instance:
|
||||||
|
|
||||||
```compile_pass
|
```
|
||||||
struct Irrefutable(i32);
|
struct Irrefutable(i32);
|
||||||
let irr = Irrefutable(0);
|
let irr = Irrefutable(0);
|
||||||
|
|
||||||
|
@ -360,7 +360,7 @@ A while-let pattern attempts to match the pattern, and enters the body if the
|
||||||
match was successful. If the match is irrefutable (when it cannot fail to
|
match was successful. If the match is irrefutable (when it cannot fail to
|
||||||
match), use a regular `let`-binding inside a `loop` instead. For instance:
|
match), use a regular `let`-binding inside a `loop` instead. For instance:
|
||||||
|
|
||||||
```compile_pass,no_run
|
```no_run
|
||||||
struct Irrefutable(i32);
|
struct Irrefutable(i32);
|
||||||
let irr = Irrefutable(0);
|
let irr = Irrefutable(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue