summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/auxiliary/issue-79825.rs
blob: 930891b1d43f9a4b3459d73ebf06a9a5fa643592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// force-host
// no-prefer-dynamic
#![crate_type = "proc-macro"]

extern crate proc_macro;

use proc_macro::TokenStream;

#[proc_macro_attribute]
pub fn assert_input(args: TokenStream, input: TokenStream) -> TokenStream {
    assert_eq!(input.to_string(), "trait Alias = Sized ;");
    assert!(args.is_empty());
    TokenStream::new()
}