]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / did_you_mean / issue-43871-enum-instead-of-variant.stderr
1 error[E0423]: expected function, found enum `Option`
2   --> $DIR/issue-43871-enum-instead-of-variant.rs:14:13
3    |
4 LL |     let x = Option(1); //~ ERROR expected function, found enum
5    |             ^^^^^^
6    |
7    = note: did you mean to use one of the following variants?
8            - `std::prelude::v1::Option::None`
9            - `std::prelude::v1::Option::Some`
10
11 error[E0532]: expected tuple struct/variant, found enum `Option`
12   --> $DIR/issue-43871-enum-instead-of-variant.rs:16:12
13    |
14 LL |     if let Option(_) = x { //~ ERROR expected tuple struct/variant, found enum
15    |            ^^^^^^
16    |
17    = note: did you mean to use one of the following variants?
18            - `std::prelude::v1::Option::None`
19            - `std::prelude::v1::Option::Some`
20
21 error[E0532]: expected tuple struct/variant, found enum `Example`
22   --> $DIR/issue-43871-enum-instead-of-variant.rs:22:12
23    |
24 LL |     if let Example(_) = y { //~ ERROR expected tuple struct/variant, found enum
25    |            ^^^^^^^
26    |
27    = note: did you mean to use one of the following variants?
28            - `Example::Ex`
29            - `Example::NotEx`
30
31 error: aborting due to 3 previous errors
32
33 Some errors occurred: E0423, E0532.
34 For more information about an error, try `rustc --explain E0423`.