summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-87812-path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-87812-path.rs')
-rw-r--r--tests/ui/parser/issues/issue-87812-path.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-87812-path.rs b/tests/ui/parser/issues/issue-87812-path.rs
new file mode 100644
index 000000000..b88780876
--- /dev/null
+++ b/tests/ui/parser/issues/issue-87812-path.rs
@@ -0,0 +1,11 @@
+macro_rules! foo {
+ ( $f:path ) => {{
+ let _: usize = $f; //~ERROR
+ }};
+}
+
+struct Baz;
+
+fn main() {
+ foo!(Baz);
+}