Add doctest to the proc-macro derive-test
This commit is contained in:
parent
c759aea5b3
commit
d492433744
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ extern crate proc_macro;
|
|||
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
// ```
|
||||
// assert!(true);
|
||||
// ```
|
||||
#[proc_macro_derive(Foo)]
|
||||
pub fn derive_foo(_input: TokenStream) -> TokenStream {
|
||||
"".parse().unwrap()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue