-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Something like this utilizing https://facet.rs fails:
error_set::error_set! {
#[derive(facet::Facet)] #[repr(u8)]
pub enum FooError {
A(#[facet(opaque)] extrenal_crate::TypeThatDoesntImplementFacetError),
B(#[facet(opaque)] extrenal_crate::TypeThatDoesntImplementFacetError),
}
}Relevant error message:
error: unexpected token, expected `)`
--> src/lib.rs:30:16
|
30 | A(#[facet(opaque)] extrenal_crate::TypeThatDoesntImplementFacetError),
| ^
If the code above is moved outside of error_set! macro, it works as expected. Thus, I think it should work within in as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request