diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-25385.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-25385.rs b/src/test/ui/issues/issue-25385.rs new file mode 100644 index 000000000..ea042a6c7 --- /dev/null +++ b/src/test/ui/issues/issue-25385.rs @@ -0,0 +1,12 @@ +macro_rules! foo { + ($e:expr) => { $e.foo() } + //~^ ERROR no method named `foo` found +} + +fn main() { + let a = 1i32; + foo!(a); + + foo!(1i32.foo()); + //~^ ERROR no method named `foo` found +} |