1 // aux-build:macro-in-other-crate.rs
3 #[macro_use] extern crate macro_in_other_crate;
5 macro_rules! local_mac {
6 ($ident:ident) => { let $ident = 42; }
11 //~^ ERROR can't call method `neg` on ambiguous numeric type `{float}`
15 //~^ ERROR can't call method `neg` on ambiguous numeric type `{float}`
19 println!("{}", i.pow(2));
20 //~^ ERROR can't call method `pow` on ambiguous numeric type `{integer}`
23 local_mac!(local_bar);
25 //~^ ERROR can't call method `pow` on ambiguous numeric type `{integer}`
31 //~^ ERROR can't call method `pow` on ambiguous numeric type `{integer}`