diff options
Diffstat (limited to 'tests/ui/issues/issue-17001.rs')
-rw-r--r-- | tests/ui/issues/issue-17001.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-17001.rs b/tests/ui/issues/issue-17001.rs new file mode 100644 index 000000000..68cb2865f --- /dev/null +++ b/tests/ui/issues/issue-17001.rs @@ -0,0 +1,5 @@ +mod foo {} + +fn main() { + let p = foo { x: () }; //~ ERROR expected struct, variant or union type, found module `foo` +} |