diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-04 15:47:12 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-05 12:38:32 +0530 |
| commit | 4de4234795b9fabe14482f817ab2936a6439b7dd (patch) | |
| tree | 62ac857e4ef51a95497408a3430d188a27e789e1 /src/test | |
| parent | 71ef0734e79898300329e2ffa67f5d9c8561550b (diff) | |
| parent | 951118b74f0cd6f61116ba9d21bb08e6af49cdf0 (diff) | |
Rollup merge of #23018 - sanxiyn:quote-question, r=huonw
Fix #22957.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass-fulldeps/quote-tokens.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/run-pass-fulldeps/quote-tokens.rs b/src/test/run-pass-fulldeps/quote-tokens.rs index 4e6f9b46402..a9b77419b9a 100644 --- a/src/test/run-pass-fulldeps/quote-tokens.rs +++ b/src/test/run-pass-fulldeps/quote-tokens.rs @@ -1,4 +1,4 @@ -// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -43,6 +43,8 @@ fn syntax_extension(cx: &ExtCtxt) { let _m: Vec<syntax::ast::TokenTree> = quote_matcher!(cx, $($foo:tt,)* bar); let _n: syntax::ast::Attribute = quote_attr!(cx, #![cfg(foo, bar = "baz")]); + + let _o: Option<P<syntax::ast::Item>> = quote_item!(cx, fn foo<T: ?Sized>() {}); } fn main() { |
