]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-tuple-bad-type.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / pattern / pat-tuple-bad-type.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/pat-tuple-bad-type.rs:2:9
3    |
4 LL |     let x;
5    |         ^
6 ...
7 LL |         (..) => {}
8    |         ---- type must be known at this point
9    |
10 help: consider giving `x` an explicit type
11    |
12 LL |     let x: _;
13    |          +++
14
15 error[E0308]: mismatched types
16   --> $DIR/pat-tuple-bad-type.rs:10:9
17    |
18 LL |     match 0u8 {
19    |           --- this expression has type `u8`
20 LL |         (..) => {}
21    |         ^^^^ expected `u8`, found `()`
22
23 error: aborting due to 2 previous errors
24
25 Some errors have detailed explanations: E0282, E0308.
26 For more information about an error, try `rustc --explain E0282`.