diff options
Diffstat (limited to 'src/test/parse-fail/struct-variant-no-pub.rs')
| -rw-r--r-- | src/test/parse-fail/struct-variant-no-pub.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/parse-fail/struct-variant-no-pub.rs b/src/test/parse-fail/struct-variant-no-pub.rs index e62b39ad5aa..1824e32c425 100644 --- a/src/test/parse-fail/struct-variant-no-pub.rs +++ b/src/test/parse-fail/struct-variant-no-pub.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// compile-flags: -Z parse-only + enum Foo { Bar { pub a: isize //~ ERROR: `pub` is not allowed here |
