mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
22 lines
472 B
Rust
22 lines
472 B
Rust
//@ proc-macro: param-attrs.rs
|
|
|
|
//@ check-pass
|
|
|
|
extern crate param_attrs;
|
|
|
|
use param_attrs::rename_params;
|
|
|
|
#[rename_params(send_help)]
|
|
impl Foo {
|
|
fn hello(#[angery(true)] a: i32, #[a2] b: i32, #[what = "how"] c: u32) {}
|
|
fn hello2(#[a1] #[a2] a: i32, #[what = "how"] b: i32, #[angery(true)] c: u32) {}
|
|
fn hello_self(
|
|
#[a1] #[a2] &self,
|
|
#[a1] #[a2] a: i32,
|
|
#[what = "how"] b: i32,
|
|
#[angery(true)] c: u32
|
|
) {}
|
|
}
|
|
|
|
fn main() {}
|