diff options
Diffstat (limited to 'third_party/rust/syn/tests/test_parse_stream.rs')
-rw-r--r-- | third_party/rust/syn/tests/test_parse_stream.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/rust/syn/tests/test_parse_stream.rs b/third_party/rust/syn/tests/test_parse_stream.rs new file mode 100644 index 0000000000..76bd065777 --- /dev/null +++ b/third_party/rust/syn/tests/test_parse_stream.rs @@ -0,0 +1,12 @@ +use syn::ext::IdentExt; +use syn::parse::ParseStream; +use syn::{Ident, Token}; + +#[test] +fn test_peek() { + let _ = |input: ParseStream| { + let _ = input.peek(Ident); + let _ = input.peek(Ident::peek_any); + let _ = input.peek(Token![::]); + }; +} |