fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0618]: expected function, found `Enum<()>` 2 --> $DIR/issue-114701.rs:14:27 3 | 4LL | enum Enum<T> { SVariant { v: T }, UVariant } 5 | -------- `Enum::UVariant` defined here 6... 7LL | assert!(if let Enum::$variant::<()> $matcher = $expr () { true } else { false }, 8 | -------- call expression requires function 9... 10LL | is_variant!(UVariant, Enum::<()>::UVariant); 11 | ^^^^^^^^^^^^^^^^^^^^ 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0618`.