blob: e47a198c6aeaf1fbd5aca9b27dc6e7f80e2a1cf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#![warn(clippy::missing_inline_in_public_items)]
extern crate proc_macro;
use proc_macro::TokenStream;
fn _foo() {}
#[proc_macro]
pub fn function_like(_: TokenStream) -> TokenStream {
TokenStream::new()
}
#[proc_macro_attribute]
pub fn attribute(_: TokenStream, _: TokenStream) -> TokenStream {
TokenStream::new()
}
#[proc_macro_derive(Derive)]
pub fn derive(_: TokenStream) -> TokenStream {
TokenStream::new()
}
|