diff options
Diffstat (limited to 'tests/ui/inline-disallow-on-variant.rs')
-rw-r--r-- | tests/ui/inline-disallow-on-variant.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/inline-disallow-on-variant.rs b/tests/ui/inline-disallow-on-variant.rs new file mode 100644 index 000000000..d92a4e8cc --- /dev/null +++ b/tests/ui/inline-disallow-on-variant.rs @@ -0,0 +1,7 @@ +enum Foo { + #[inline] + //~^ ERROR attribute should be applied + Variant, +} + +fn main() {} |