about summary refs log tree commit diff
path: root/tests/ui/proc-macro/trait-fn-args-2015.rs
blob: 010d986a86df6eff7b08317e8fa2c23998f07ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Unnamed arguments in trait functions can be passed through proc macros on 2015 edition.

//@ check-pass
//@ edition: 2015
//@ proc-macro: test-macros.rs

#![allow(anonymous_parameters)]

#[macro_use]
extern crate test_macros;

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

fn main() {}