Closed
Description
code
macro_rules! foo {
($e:expr) => { $e.foo() }
}
fn main() {
let (a,) = 1i32.foo();
foo!(a);
}
output
main.rs:6:21: 6:26 error: type `i32` does not implement any method in scope named `foo`
main.rs:6 let (a,) = 1i32.foo();
^~~~~
main.rs:7:10: 2:28 error: the type of this value must be known in this context
(internal compiler error: unprintable span)
main.rs:1:1: 3:2 note: in expansion of foo!
main.rs:7:5: 7:13 note: expansion site
error: aborting due to 2 previous errors
rustc version
rustc 1.1.0-nightly (c2b30b86d 2015-05-12) (built 2015-05-12)
binary: rustc
commit-hash: c2b30b86df6b34ba19e87e63402e43d9e81a64fb
commit-date: 2015-05-12
build-date: 2015-05-12
host: x86_64-apple-darwin
release: 1.1.0-nightly