mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
13 lines
262 B
Rust
13 lines
262 B
Rust
//@ run-pass
|
|
//@ 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;
|