summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/issue-75801.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/proc-macro/issue-75801.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/issue-75801.rs b/src/test/ui/proc-macro/issue-75801.rs
new file mode 100644
index 000000000..b07cde0fa
--- /dev/null
+++ b/src/test/ui/proc-macro/issue-75801.rs
@@ -0,0 +1,19 @@
+// aux-build: issue-75801.rs
+
+// Regression test for #75801.
+
+#[macro_use]
+extern crate issue_75801;
+
+macro_rules! foo {
+ ($arg:expr) => {
+ #[foo]
+ fn bar() {
+ let _bar: u32 = $arg;
+ }
+ };
+}
+
+foo!("baz"); //~ ERROR: mismatched types [E0308]
+
+fn main() {}