]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17800.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-17800.stderr
1 error[E0026]: variant `MyOption::MySome` does not have a field named `x`
2   --> $DIR/issue-17800.rs:18:28
3    |
4 LL |         MyOption::MySome { x: 42 } => (),
5    |                            ^^^^^ variant `MyOption::MySome` does not have this field
6
7 error[E0027]: pattern does not mention field `0`
8   --> $DIR/issue-17800.rs:18:9
9    |
10 LL |         MyOption::MySome { x: 42 } => (),
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `0`
12    |
13    = note: trying to match a tuple variant with a struct variant pattern
14
15 error: aborting due to 2 previous errors
16
17 Some errors occurred: E0026, E0027.
18 For more information about an error, try `rustc --explain E0026`.