diff options
Diffstat (limited to 'tests/ui/parser/use-unclosed-brace.rs')
-rw-r--r-- | tests/ui/parser/use-unclosed-brace.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/use-unclosed-brace.rs b/tests/ui/parser/use-unclosed-brace.rs new file mode 100644 index 000000000..41742f37f --- /dev/null +++ b/tests/ui/parser/use-unclosed-brace.rs @@ -0,0 +1,12 @@ +// error-pattern: expected one of `,`, `::`, `as`, or `}`, found `;` +// error-pattern: this file contains an unclosed delimiter +// error-pattern: expected item, found `}` +use foo::{bar, baz; + +use std::fmt::Display; + +mod bar { } + +mod baz { } + +fn main() {} |