diff --git a/module/core/former/tests/inc/only_test/with_field_under_feature.rs b/module/core/former/tests/inc/only_test/with_field_under_feature.rs new file mode 100644 index 0000000000..2623f7579b --- /dev/null +++ b/module/core/former/tests/inc/only_test/with_field_under_feature.rs @@ -0,0 +1,9 @@ +// xxx : need to fix +// #[ derive( Former ) ] +// struct Foo +// { +// #[ cfg( feature = "baz" ) ] +// bar : i32, +// } + +// error => Unknown attribute #[cfg(feature = "baz")] \ No newline at end of file