diff options
| author | bors <bors@rust-lang.org> | 2014-09-29 10:08:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-29 10:08:04 +0000 |
| commit | 40b86baca0e7e84ece58c2b5f6161371bf672a93 (patch) | |
| tree | 39621bffd02e33603a518083ab5d187689aedf9b /src/test | |
| parent | eb816eee0f1803f03fbf046a26a1920659c14d82 (diff) | |
| parent | 75d49c8203405ab0af7a2b8b8698af02868fdbc2 (diff) | |
| download | rust-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.rs | 2 |
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() { |
