mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
c586fe40f1
Generally, `tt` and `ident` should behave identically, modulo the latter accepting only a subset of token trees.
34 lines
485 B
Rust
34 lines
485 B
Rust
// edition:2015
|
|
|
|
#![allow(keyword_idents)]
|
|
|
|
#[macro_export]
|
|
macro_rules! produces_async {
|
|
() => (pub fn async() {})
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! produces_async_raw {
|
|
() => (pub fn r#async() {})
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! consumes_async {
|
|
(async) => (1)
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! consumes_async_raw {
|
|
(r#async) => (1)
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! passes_ident {
|
|
($i: ident) => ($i)
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! passes_tt {
|
|
($i: tt) => ($i)
|
|
}
|