2017-12-26 07:11:18 -06:00
|
|
|
#![feature(quote)]
|
|
|
|
fn main() {
|
|
|
|
macro_rules! foo {
|
|
|
|
($bar:expr) => {
|
2018-12-16 11:23:27 -06:00
|
|
|
quote_expr!(cx, $bar)
|
|
|
|
//~^ ERROR quote! with interpolated token
|
|
|
|
//~| ERROR failed to resolve: maybe a missing `extern crate syntax;`?
|
|
|
|
//~| ERROR failed to resolve: maybe a missing `extern crate syntax;`?
|
|
|
|
//~| ERROR cannot find value `cx` in this scope
|
|
|
|
//~| ERROR cannot find function `new_parser_from_tts` in this scope
|
2017-12-26 07:11:18 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
foo!(bar);
|
|
|
|
}
|