]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-25385.rs
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / ui / macros / issue-25385.rs
1 macro_rules! foo {
2     ($e:expr) => { $e.foo() }
3     //~^ ERROR no method named `foo` found
4 }
5
6 fn main() {
7     let a = 1i32;
8     foo!(a);
9
10     foo!(1i32.foo());
11     //~^ ERROR no method named `foo` found
12 }