You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per @robinkrahl's request (#2 (comment)), I made an attempt at this but it doesn't necessarily work. The only limited working form is if $v is an ident or $(tt)+ where only assert_variant!(Thing, A); works and neither of the others does. And even then, it still requires the #![feature(type_alias_enum_variants)] attribute for some reason on nightly.
Below is my current (failing) attempt at a solution:
As per @robinkrahl's request (#2 (comment)), I made an attempt at this but it doesn't necessarily work. The only limited working form is if
$v
is anident
or$(tt)+
where onlyassert_variant!(Thing, A);
works and neither of the others does. And even then, it still requires the#![feature(type_alias_enum_variants)]
attribute for some reason on nightly.Below is my current (failing) attempt at a solution:
Ideally, the best solution would allow for:
The text was updated successfully, but these errors were encountered: