diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 14e13feac98..c7cb41e2ece 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -450,8 +450,7 @@ pub fn expand_quote_ty(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) -> Box { - let expanded = expand_parse_call(cx, sp, "parse_ty", - vec![], tts); + let expanded = expand_parse_call(cx, sp, "parse_ty", vec!(), tts); base::MacExpr::new(expanded) } diff --git a/src/test/run-pass-fulldeps/quote-tokens.rs b/src/test/run-pass-fulldeps/quote-tokens.rs index 8a640387da2..dc14e3c707c 100644 --- a/src/test/run-pass-fulldeps/quote-tokens.rs +++ b/src/test/run-pass-fulldeps/quote-tokens.rs @@ -38,6 +38,8 @@ fn syntax_extension(cx: &ExtCtxt) { let _j: P = quote_method!(cx, fn foo(&self) {}); let _k: P = quote_method!(cx, #[doc = "hello"] fn foo(&self) {}); + + let _l: P = quote_ty!(cx, &int); } fn main() {