2023-08-13 07:34:36 -05:00
|
|
|
error[E0618]: expected function, found `Enum<()>`
|
|
|
|
--> $DIR/issue-114701.rs:14:27
|
|
|
|
|
|
2023-08-15 05:58:33 -05:00
|
|
|
LL | enum Enum<T> { SVariant { v: T }, UVariant }
|
|
|
|
| -------- `Enum::UVariant` defined here
|
2023-08-13 07:34:36 -05:00
|
|
|
...
|
2023-08-15 05:58:33 -05:00
|
|
|
LL | assert!(if let Enum::$variant::<()> $matcher = $expr () { true } else { false },
|
2023-08-13 07:34:36 -05:00
|
|
|
| -------- call expression requires function
|
|
|
|
...
|
|
|
|
LL | is_variant!(UVariant, Enum::<()>::UVariant);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-08-15 05:58:33 -05:00
|
|
|
error: aborting due to previous error
|
2023-08-13 07:34:36 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0618`.
|