fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
913 B23 linesraw
1error[E0004]: non-exhaustive patterns: `Foo(_, _)` not covered
2  --> $DIR/tuple-struct-nonexhaustive.rs:5:11
3   |
4LL |     match x {
5   |           ^ pattern `Foo(_, _)` not covered
6   |
7note: `Foo` defined here
8  --> $DIR/tuple-struct-nonexhaustive.rs:1:8
9   |
10LL | struct Foo(isize, isize);
11   |        ^^^
12   = note: the matched value is of type `Foo`
13   = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
14   = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
15help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
16   |
17LL ~         Foo(2, b) => println!("{}", b),
18LL +         Foo(_, _) => todo!()
19   |
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0004`.