summary refs log tree commit diff
path: root/src/test/ui/quote-with-interpolated.rs
blob: b948226652b45fbca46b0d6c0394f8be685218c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(quote)]
fn main() {
    macro_rules! foo {
        ($bar:expr)  => {
            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
        }
    }
    foo!(bar);
}