2014-01-18 23:00:50 -08:00
|
|
|
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2015-04-22 15:20:57 -07:00
|
|
|
// ignore-cross-compile
|
2014-04-16 14:29:02 +09:00
|
|
|
// ignore-pretty: does not work well with `--test`
|
|
|
|
|
2015-03-05 18:33:58 -08:00
|
|
|
#![feature(quote, rustc_private)]
|
2016-08-13 02:41:43 -07:00
|
|
|
#![deny(unused_variables)]
|
2014-01-18 23:00:50 -08:00
|
|
|
|
2014-02-14 10:10:06 -08:00
|
|
|
extern crate syntax;
|
2014-01-18 23:00:50 -08:00
|
|
|
|
|
|
|
use syntax::ext::base::ExtCtxt;
|
|
|
|
|
|
|
|
fn test(cx: &mut ExtCtxt) {
|
2015-01-25 22:05:03 +01:00
|
|
|
let foo = 10;
|
2014-01-18 23:00:50 -08:00
|
|
|
let _e = quote_expr!(cx, $foo);
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() { }
|