about summary refs log tree commit diff
path: root/src/test/run-pass/proc-macro/attr-args.rs
blob: 6ff6ccacf7c425c2673d07b4a2fa3c98c36b313c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// aux-build:attr-args.rs

#![allow(warnings)]

extern crate attr_args;
use attr_args::{attr_with_args, identity};

#[attr_with_args(text = "Hello, world!")]
fn foo() {}

#[identity(fn main() { assert_eq!(foo(), "Hello, world!"); })]
struct Dummy;