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

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![::]);
    };
}