fix tyinfer test

This commit is contained in:
Niko Matsakis 2015-07-21 20:49:09 -04:00
parent 1bbfb9d764
commit 110db353fc

View File

@ -134,7 +134,7 @@ grammar;
extern token { type Location = usize; enum Tok { } } extern token { type Location = usize; enum Tok { } }
A = @L; A = @L;
"#, vec![ "#, vec![
("A", "::std::option::Option<usize>"), ("A", "usize"),
]) ])
} }
@ -144,11 +144,11 @@ fn test_spanned_macro() {
grammar; grammar;
extern token { type Location = usize; enum Tok { } } extern token { type Location = usize; enum Tok { } }
A = Spanned<"Foo">; A = Spanned<"Foo">;
Spanned<T>: (Option<usize>, Option<usize>) = { Spanned<T> = {
<@L> T <@R> => (<>); @L T @R;
}; };
"#, vec![ "#, vec![
("A", "(Option<usize>, Option<usize>)"), ("A", "(usize, Tok, usize)"),
]) ])
} }