]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-tuple-bad-type.stderr
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / pattern / pat-tuple-bad-type.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/pat-tuple-bad-type.rs:5:9
3    |
4 LL |     let x;
5    |         - consider giving `x` a type
6 ...
7 LL |         (..) => {}
8    |         ^^^^ cannot infer type
9    |
10    = note: type must be known at this point
11
12 error[E0308]: mismatched types
13   --> $DIR/pat-tuple-bad-type.rs:10:9
14    |
15 LL |     match 0u8 {
16    |           --- this expression has type `u8`
17 LL |         (..) => {}
18    |         ^^^^ expected `u8`, found `()`
19
20 error: aborting due to 2 previous errors
21
22 Some errors have detailed explanations: E0282, E0308.
23 For more information about an error, try `rustc --explain E0282`.