]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16401.stderr
ea5f89d18ddb2648cc8d8ebdd2846c259e5930f7
[rust.git] / src / test / ui / issues / issue-16401.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-16401.rs:8:9
3    |
4 LL |     match () {
5    |           -- this match expression evaluates to `()`
6 LL |         Slice { data: data, len: len } => (),
7    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found struct `Slice`
8    |
9    = note: expected type `()`
10               found type `Slice<_>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.