diff options
Diffstat (limited to 'tests/ui/pub/pub-restricted-error.rs')
-rw-r--r-- | tests/ui/pub/pub-restricted-error.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/pub/pub-restricted-error.rs b/tests/ui/pub/pub-restricted-error.rs new file mode 100644 index 000000000..60fce3f51 --- /dev/null +++ b/tests/ui/pub/pub-restricted-error.rs @@ -0,0 +1,7 @@ +struct Bar(pub(())); + +struct Foo { + pub(crate) () foo: usize, //~ ERROR expected identifier +} + +fn main() {} |