]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/auxiliary/derive-helper-shadowing.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / proc-macro / auxiliary / derive-helper-shadowing.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![crate_type = "proc-macro"]
5
6 extern crate proc_macro;
7 use proc_macro::*;
8
9 #[proc_macro_derive(GenHelperUse)]
10 pub fn derive_a(_: TokenStream) -> TokenStream {
11     "
12     #[empty_helper]
13     struct Uwu;
14     ".parse().unwrap()
15 }