2017-11-15 01:20:09 -06:00
|
|
|
error[E0423]: expected function, found enum `Option`
|
2017-11-23 07:10:23 -06:00
|
|
|
--> $DIR/issue-43871-enum-instead-of-variant.rs:14:13
|
|
|
|
|
|
|
|
|
14 | let x = Option(1);
|
|
|
|
| ^^^^^^
|
2017-11-15 01:20:09 -06:00
|
|
|
|
|
|
|
|
= note: did you mean to use one of the following variants?
|
|
|
|
- `std::prelude::v1::Option::None`
|
|
|
|
- `std::prelude::v1::Option::Some`
|
|
|
|
|
|
|
|
error[E0532]: expected tuple struct/variant, found enum `Option`
|
2017-11-23 07:10:23 -06:00
|
|
|
--> $DIR/issue-43871-enum-instead-of-variant.rs:16:12
|
2017-11-15 01:20:09 -06:00
|
|
|
|
|
2017-11-23 07:10:23 -06:00
|
|
|
16 | if let Option(_) = x {
|
2017-11-15 01:20:09 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= note: did you mean to use one of the following variants?
|
|
|
|
- `std::prelude::v1::Option::None`
|
|
|
|
- `std::prelude::v1::Option::Some`
|
|
|
|
|
2017-11-23 07:10:23 -06:00
|
|
|
error[E0532]: expected tuple struct/variant, found enum `Example`
|
|
|
|
--> $DIR/issue-43871-enum-instead-of-variant.rs:22:12
|
|
|
|
|
|
|
|
|
22 | if let Example(_) = y {
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: did you mean to use one of the following variants?
|
|
|
|
- `Example::Ex`
|
|
|
|
- `Example::NotEx`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2017-11-15 01:20:09 -06:00
|
|
|
|