]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/trait-fn-args-2015.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / proc-macro / trait-fn-args-2015.rs
1 // Unnamed arguments in trait functions can be passed through proc macros on 2015 edition.
2
3 // check-pass
4 // aux-build:test-macros.rs
5
6 #![allow(anonymous_parameters)]
7
8 #[macro_use]
9 extern crate test_macros;
10
11 trait Tr {
12     #[identity_attr]
13     fn method(u8);
14 }
15
16 fn main() {}