aboutsummaryrefslogtreecommitdiff
path: root/vendor/syn/tests/test_parse_stream.rs
blob: 6e4a5a505fd9e87af5797e21bb30762d73efe32a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(clippy::let_underscore_untyped)]

use syn::ext::IdentExt as _;
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![::]);
    };
}