]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-tuple-bad-type.stderr
7a599b07f1e55cacbc7d488bc76734634f938c8a
[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 |         (..) => {}
16    |         ^^^^ expected u8, found ()
17    |
18    = note:   expected type `u8`
19            found unit type `()`
20
21 error: aborting due to 2 previous errors
22
23 Some errors have detailed explanations: E0282, E0308.
24 For more information about an error, try `rustc --explain E0282`.