]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-struct.stderr
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[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 expression has type `S`
6 LL |         E::C(_) => (),
7    |         ^^^^^^^ expected struct `S`, found enum `E`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0308`.