rust/src/test/ui/unreachable/unreachable-try-pattern.stderr

31 lines
884 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
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) })?;
| ^^^^^^