2024-09-01 21:27:43 -05:00
|
|
|
error: expected one of `)`, `,`, `@`, or `|`, found `list`
|
|
|
|
--> $DIR/ref.rs:4:19
|
|
|
|
|
|
|
|
|
LL | Some(refe list) => println!("{list:?}"),
|
2024-09-02 11:43:35 -05:00
|
|
|
| ^^^^ expected one of `)`, `,`, `@`, or `|`
|
|
|
|
|
|
|
|
|
help: there is a keyword `ref` with a similar name
|
|
|
|
|
|
|
|
|
LL | Some(ref list) => println!("{list:?}"),
|
|
|
|
| ~~~
|
2024-09-01 21:27:43 -05:00
|
|
|
|
|
|
|
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`.
|