summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/trait-fn-args-2015.rs
blob: 6b8df78a061c7194339b14e8d530559a2abdce92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Unnamed arguments in trait functions can be passed through proc macros on 2015 edition.

// check-pass
// aux-build:test-macros.rs

#![allow(anonymous_parameters)]

#[macro_use]
extern crate test_macros;

trait Tr {
    #[identity_attr]
    fn method(u8);
}

fn main() {}