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.
Something like this utilizing https://facet.rs fails:
Relevant error message:
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.