about summary refs log tree commit diff
path: root/tests/ui/proc-macro/valid-sugg-issue-137345.rs
blob: 78674797b8da6babec932c80b27d8d4d52a4b115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ aux-crate: quote=quote-issue-137345.rs

extern crate proc_macro;
extern crate quote;

use proc_macro::TokenStream;

pub fn default_args_fn(_: TokenStream) -> TokenStream {
    let decl_macro = TokenStream::new();

    quote::quote! {
        #(#decl_macro)*
    }
    .into() //~^^^ ERROR no method named `map` found for opaque type
}

fn main() {}