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