about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-29 10:08:04 +0000
committerbors <bors@rust-lang.org>2014-09-29 10:08:04 +0000
commit40b86baca0e7e84ece58c2b5f6161371bf672a93 (patch)
tree39621bffd02e33603a518083ab5d187689aedf9b /src/test
parenteb816eee0f1803f03fbf046a26a1920659c14d82 (diff)
parent75d49c8203405ab0af7a2b8b8698af02868fdbc2 (diff)
downloadrust-40b86baca0e7e84ece58c2b5f6161371bf672a93.tar.gz
rust-40b86baca0e7e84ece58c2b5f6161371bf672a93.zip
auto merge of #17409 : farcaller/rust/patch-1, r=huonw
Parser.parse_method now has a second argument, I assume ast::Inherited is the correct visibility in this case.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass-fulldeps/quote-tokens.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/run-pass-fulldeps/quote-tokens.rs b/src/test/run-pass-fulldeps/quote-tokens.rs
index b7c4c146382..7b48e7a84b6 100644
--- a/src/test/run-pass-fulldeps/quote-tokens.rs
+++ b/src/test/run-pass-fulldeps/quote-tokens.rs
@@ -35,6 +35,8 @@ fn syntax_extension(cx: &ExtCtxt) {
 
     let i: Option<P<syntax::ast::Item>> = quote_item!(cx, #[deriving(Eq)] struct Foo; );
     assert!(i.is_some());
+
+    let _j: P<syntax::ast::Method> = quote_method!(cx, fn foo(&self) {});
 }
 
 fn main() {