about summary refs log tree commit diff
path: root/tests/ui/parser/misspelled-keywords/ref.stderr
blob: dd33fdb21ba1a9364f88c15ba300ba7171b10f51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error: expected one of `)`, `,`, `@`, `if`, or `|`, found `list`
  --> $DIR/ref.rs:4:19
   |
LL |         Some(refe list) => println!("{list:?}"),
   |                   ^^^^ expected one of `)`, `,`, `@`, `if`, or `|`
   |
help: there is a keyword `ref` with a similar name
   |
LL -         Some(refe list) => println!("{list:?}"),
LL +         Some(ref list) => println!("{list:?}"),
   |

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
  --> $DIR/ref.rs:4:14
   |
LL |         Some(refe list) => println!("{list:?}"),
   |              ^^^^ ^^^^ expected 1 field, found 2
   |
  --> $SRC_DIR/core/src/option.rs:LL:COL
   |
   = note: tuple variant has 1 field

error: aborting due to 2 previous errors

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