diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs')
-rw-r--r-- | src/test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs b/src/test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs deleted file mode 100644 index 1183ac65b..000000000 --- a/src/test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs +++ /dev/null @@ -1,61 +0,0 @@ -// aux-build:param-attrs.rs - -// check-pass - -#![feature(c_variadic)] - -extern crate param_attrs; - -use param_attrs::*; - -struct W(u8); - -#[attr_extern] -extern "C" { fn ffi(#[a1] arg1: i32, #[a2] ...); } - -#[attr_extern_cvar] -unsafe extern "C" fn cvar(arg1: i32, #[a1] mut args: ...) {} - -#[attr_alias] -type Alias = fn(#[a1] u8, #[a2] ...); - -#[attr_free] -fn free(#[a1] arg1: u8) { - let lam = |#[a2] W(x), #[a3] y| (); -} - -impl W { - #[attr_inherent_1] - fn inherent1(#[a1] self, #[a2] arg1: u8) {} - - #[attr_inherent_2] - fn inherent2(#[a1] &self, #[a2] arg1: u8) {} - - #[attr_inherent_3] - fn inherent3<'a>(#[a1] &'a mut self, #[a2] arg1: u8) {} - - #[attr_inherent_4] - fn inherent4<'a>(#[a1] self: Box<Self>, #[a2] arg1: u8) {} - - #[attr_inherent_issue_64682] - fn inherent5(#[a1] #[a2] arg1: u8, #[a3] arg2: u8) {} -} - -trait A { - #[attr_trait_1] - fn trait1(#[a1] self, #[a2] arg1: u8); - - #[attr_trait_2] - fn trait2(#[a1] &self, #[a2] arg1: u8); - - #[attr_trait_3] - fn trait3<'a>(#[a1] &'a mut self, #[a2] arg1: u8); - - #[attr_trait_4] - fn trait4<'a>(#[a1] self: Box<Self>, #[a2] arg1: u8, #[a3] Vec<u8>); - - #[attr_trait_issue_64682] - fn trait5(#[a1] #[a2] arg1: u8, #[a3] arg2: u8); -} - -fn main() {} |