Fixed quote_method!() implementation

Parser.parse_method now has a second argument, I assume ast::Inherited is the correct visibility in this case.
This commit is contained in:
Vladimir Pouzanov 2014-09-20 17:02:48 +01:00
parent 5d335c94bd
commit 75d49c8203
2 changed files with 8 additions and 2 deletions

View file

@ -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() {