1 2 3 4 5 6 7 8 9 10 11 12
use syn::ext::IdentExt; use syn::parse::ParseStream; use syn::{Ident, Token}; #[test] fn test_peek() { _ = |input: ParseStream| { _ = input.peek(Ident); _ = input.peek(Ident::peek_any); _ = input.peek(Token![::]); }; }