]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-tuple-pat.stderr
Auto merge of #59211 - nox:refcell-borrow-state, r=KodrAus
[rust.git] / src / test / ui / parser / recover-tuple-pat.stderr
1 error: expected pattern, found `.`
2   --> $DIR/recover-tuple-pat.rs:5:13
3    |
4 LL |         (1, .=., 4) => { let _: usize = ""; }
5    |             ^ expected pattern
6
7 error: expected pattern, found `.`
8   --> $DIR/recover-tuple-pat.rs:8:10
9    |
10 LL |         (.=., 4) => {}
11    |          ^ expected pattern
12
13 error[E0308]: mismatched types
14   --> $DIR/recover-tuple-pat.rs:5:41
15    |
16 LL |         (1, .=., 4) => { let _: usize = ""; }
17    |                                         ^^ expected usize, found reference
18    |
19    = note: expected type `usize`
20               found type `&'static str`
21
22 error: aborting due to 3 previous errors
23
24 For more information about this error, try `rustc --explain E0308`.