summary refs log tree commit diff
path: root/src/test/ui/parser/pat-lt-bracket-7.stderr
blob: 17557efa49e803e70c1369448fc0a183d3c3aaf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: expected one of `)`, `,`, or `@`, found `[`
  --> $DIR/pat-lt-bracket-7.rs:5:16
   |
LL |     for Thing(x[]) in foo {}
   |                ^ expected one of `)`, `,`, or `@` here

error[E0308]: mismatched types
  --> $DIR/pat-lt-bracket-7.rs:8:30
   |
LL | const RECOVERY_WITNESS: () = 0;
   |                              ^ expected (), found integer
   |
   = note: expected type `()`
              found type `{integer}`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.