fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: unreachable expression 2 --> $DIR/unwarned-match-on-never.rs:10:5 3 | 4LL | match x {} 5 | - any code following this expression is unreachable 6LL | // But matches in unreachable code are warned. 7LL | match x {} 8 | ^^^^^^^^^^ unreachable expression 9 | 10note: lint level defined here 11 --> $DIR/unwarned-match-on-never.rs:1:9 12 | 13LL | #![deny(unreachable_code)] 14 | ^^^^^^^^^^^^^^^^ 15 16error: unreachable arm 17 --> $DIR/unwarned-match-on-never.rs:15:15 18 | 19LL | match (return) { 20 | -------- any code following this expression is unreachable 21LL | () => () 22 | ^^ unreachable arm 23 24error: unreachable expression 25 --> $DIR/unwarned-match-on-never.rs:21:5 26 | 27LL | return; 28 | ------ any code following this expression is unreachable 29LL | / match () { 30LL | | () => (), 31LL | | } 32 | |_____^ unreachable expression 33 34error: aborting due to 3 previous errors 35