summaryrefslogtreecommitdiffstats
path: root/tests/ui/derives/auxiliary/derive-marker-tricky.rs
blob: 70345351bd09d9e406564d7a41037a7779683614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// force-host
// no-prefer-dynamic

#![crate_type = "proc-macro"]

extern crate proc_macro;
use proc_macro::*;

#[proc_macro_derive(NoMarker)]
pub fn f(input: TokenStream) -> TokenStream {
    if input.to_string().contains("rustc_copy_clone_marker") {
        panic!("found `#[rustc_copy_clone_marker]`");
    }
    TokenStream::new()
}