]> git.proxmox.com Git - rustc.git/blob - tests/ui/proc-macro/auxiliary/derive-unstable-2.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / proc-macro / auxiliary / derive-unstable-2.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![crate_type = "proc-macro"]
5
6 extern crate proc_macro;
7
8 use proc_macro::TokenStream;
9
10 #[proc_macro_derive(Unstable)]
11 pub fn derive(_input: TokenStream) -> TokenStream {
12
13 "
14 #[rustc_foo]
15 fn foo() {}
16 ".parse().unwrap()
17 }