1 error[E0423]: expected function, found enum `Option`
2 --> $DIR/issue-43871-enum-instead-of-variant.rs:14:13
4 LL | let x = Option(1); //~ ERROR expected function, found enum
7 = note: did you mean to use one of the following variants?
8 - `std::prelude::v1::Option::None`
9 - `std::prelude::v1::Option::Some`
11 error[E0532]: expected tuple struct/variant, found enum `Option`
12 --> $DIR/issue-43871-enum-instead-of-variant.rs:16:12
14 LL | if let Option(_) = x { //~ ERROR expected tuple struct/variant, found enum
17 = note: did you mean to use one of the following variants?
18 - `std::prelude::v1::Option::None`
19 - `std::prelude::v1::Option::Some`
21 error[E0532]: expected tuple struct/variant, found enum `Example`
22 --> $DIR/issue-43871-enum-instead-of-variant.rs:22:12
24 LL | if let Example(_) = y { //~ ERROR expected tuple struct/variant, found enum
27 = note: did you mean to use one of the following variants?
31 error: aborting due to 3 previous errors
33 Some errors occurred: E0423, E0532.
34 For more information about an error, try `rustc --explain E0423`.