31 lines
884 B
Plaintext
31 lines
884 B
Plaintext
|
warning: unreachable expression
|
||
|
--> $DIR/unreachable-try-pattern.rs:29:36
|
||
|
|
|
||
|
LL | let y = (match x { Ok(n) => Ok(n as u32), Err(e) => Err(e) })?;
|
||
|
| ^^^^^^^^
|
||
|
|
|
||
|
note: lint level defined here
|
||
|
--> $DIR/unreachable-try-pattern.rs:13:9
|
||
|
|
|
||
|
LL | #![warn(unreachable_code)]
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
|
||
|
warning: unreachable pattern
|
||
|
--> $DIR/unreachable-try-pattern.rs:29:24
|
||
|
|
|
||
|
LL | let y = (match x { Ok(n) => Ok(n as u32), Err(e) => Err(e) })?;
|
||
|
| ^^^^^
|
||
|
|
|
||
|
note: lint level defined here
|
||
|
--> $DIR/unreachable-try-pattern.rs:14:9
|
||
|
|
|
||
|
LL | #![warn(unreachable_patterns)]
|
||
|
| ^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
warning: unreachable pattern
|
||
|
--> $DIR/unreachable-try-pattern.rs:40:40
|
||
|
|
|
||
|
LL | let y = (match x { Ok(n) => Ok(n), Err(e) => Err(e) })?;
|
||
|
| ^^^^^^
|
||
|
|