about summary refs log tree commit diff
path: root/tests/ui/parser/import-from-path.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-03-29 02:41:32 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-04-03 11:08:55 +0300
commit4d649906900cd833b0680f53b8c197b087711a4a (patch)
treea840262c32e0e954ebe3f6dfc4ae1c3eda51eaba /tests/ui/parser/import-from-path.rs
parentb6d74b5e15b0d479a98b8b18bb70050511108882 (diff)
downloadrust-4d649906900cd833b0680f53b8c197b087711a4a.tar.gz
rust-4d649906900cd833b0680f53b8c197b087711a4a.zip
compiletest: Require `//~` annotations even if `error-pattern` is specified
Diffstat (limited to 'tests/ui/parser/import-from-path.rs')
-rw-r--r--tests/ui/parser/import-from-path.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/parser/import-from-path.rs b/tests/ui/parser/import-from-path.rs
index 54349d4971e..0d38c7224c5 100644
--- a/tests/ui/parser/import-from-path.rs
+++ b/tests/ui/parser/import-from-path.rs
@@ -1,2 +1 @@
-//@ error-pattern:expected
-use foo::{bar}::baz
+use foo::{bar}::baz //~ ERROR expected `;`, found `::`