rust/tests/ui/rfcs/rfc-0000-never_patterns/check.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-11-26 21:08:09 -06:00
error: a never pattern is always unreachable
--> $DIR/check.rs:14:20
|
LL | Some(!) => {}
| ^^
| |
| this will never be executed
| help: remove this expression
2023-11-26 20:47:49 -06:00
error: a guard on a never pattern will never be run
2023-11-26 21:08:09 -06:00
--> $DIR/check.rs:19:20
2023-11-26 18:08:39 -06:00
|
2023-11-26 20:47:49 -06:00
LL | Some(!) if true,
| ^^^^ help: remove this guard
2023-11-26 18:08:39 -06:00
2023-11-26 21:08:09 -06:00
error: a never pattern is always unreachable
--> $DIR/check.rs:24:28
|
LL | Some(!) if true => {}
| ^^
| |
| this will never be executed
| help: remove this expression
error: a never pattern is always unreachable
--> $DIR/check.rs:29:27
|
LL | Some(never!()) => {},
| ^^
| |
| this will never be executed
| help: remove this expression
error: aborting due to 4 previous errors
2023-11-26 18:08:39 -06:00