Closed
Description
#![feature(custom_attribute)]
#[my_header = "foo.c"]
pub mod foo {
use c2rust_bitfields::BitfieldStruct;
#[derive(BitfieldStruct)]
struct Foo {
}
}
will fail to compile with
error: cannot determine resolution for the derive macro `BitfieldStruct`
--> src/main.rs:7:14
|
7 | #[derive(BitfieldStruct)]
| ^^^^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: aborting due to previous error
However, removing the my_header
attr will let it compile again.