1 error[E0308]: mismatched types
2 --> $DIR/issue-16401.rs:8:9
5 | -- this match expression has type `()`
6 LL | Slice { data: data, len: len } => (),
7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found struct `Slice`
9 = note: expected type `()`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.