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