]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-25385.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / 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 }