]> git.proxmox.com Git - rustc.git/blob - tests/ui/rfc-2565-param-attrs/issue-64682-dropping-first-attrs-in-impl-fns.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / rfc-2565-param-attrs / issue-64682-dropping-first-attrs-in-impl-fns.rs
1 // aux-build:param-attrs.rs
2
3 // check-pass
4
5 extern crate param_attrs;
6
7 use param_attrs::rename_params;
8
9 #[rename_params(send_help)]
10 impl Foo {
11 fn hello(#[angery(true)] a: i32, #[a2] b: i32, #[what = "how"] c: u32) {}
12 fn hello2(#[a1] #[a2] a: i32, #[what = "how"] b: i32, #[angery(true)] c: u32) {}
13 fn hello_self(
14 #[a1] #[a2] &self,
15 #[a1] #[a2] a: i32,
16 #[what = "how"] b: i32,
17 #[angery(true)] c: u32
18 ) {}
19 }
20
21 fn main() {}