summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-26094.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-26094.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-26094.rs b/src/test/ui/issues/issue-26094.rs
new file mode 100644
index 000000000..df8c2f739
--- /dev/null
+++ b/src/test/ui/issues/issue-26094.rs
@@ -0,0 +1,13 @@
+macro_rules! some_macro {
+ ($other: expr) => ({
+ $other(None) //~ NOTE argument of type `Option<_>` unexpected
+ })
+}
+
+fn some_function() {} //~ NOTE defined here
+
+fn main() {
+ some_macro!(some_function);
+ //~^ ERROR this function takes 0 arguments but 1 argument was supplied
+ //~| NOTE in this expansion of some_macro!
+}