Add LazyTokenStream.

This commit is contained in:
Jeffrey Seyfried 2017-03-29 01:55:01 +00:00
parent e42836b208
commit 7d493bdd2a
13 changed files with 151 additions and 89 deletions

View file

@ -24,7 +24,7 @@ pub fn attr_with_args(args: TokenStream, input: TokenStream) -> TokenStream {
let input = input.to_string();
assert_eq!(input, "fn foo ( ) { }");
assert_eq!(input, "fn foo() { }");
r#"
fn foo() -> &'static str { "Hello, world!" }