xref: /third_party/rust/crates/syn/tests/test_parse_stream.rs
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/syn/tests/
1fad3a1d3Sopenharmony_ci#![allow(clippy::let_underscore_untyped)]
2fad3a1d3Sopenharmony_ci
3fad3a1d3Sopenharmony_ciuse syn::ext::IdentExt as _;
4fad3a1d3Sopenharmony_ciuse syn::parse::ParseStream;
5fad3a1d3Sopenharmony_ciuse syn::{Ident, Token};
6fad3a1d3Sopenharmony_ci
7fad3a1d3Sopenharmony_ci#[test]
8fad3a1d3Sopenharmony_cifn test_peek() {
9fad3a1d3Sopenharmony_ci    let _ = |input: ParseStream| {
10fad3a1d3Sopenharmony_ci        let _ = input.peek(Ident);
11fad3a1d3Sopenharmony_ci        let _ = input.peek(Ident::peek_any);
12fad3a1d3Sopenharmony_ci        let _ = input.peek(Token![::]);
13fad3a1d3Sopenharmony_ci    };
14fad3a1d3Sopenharmony_ci}
15

Indexes created Thu Nov 07 10:32:03 CST 2024