mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 16:00:10 +00:00
13 lines
252 B
Rust
13 lines
252 B
Rust
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![::]);
|
|
};
|
|
}
|