2020-02-24 03:06:45 -06:00
|
|
|
// Unnamed arguments in trait functions can be passed through proc macros on 2015 edition.
|
|
|
|
|
|
|
|
// check-pass
|
|
|
|
// aux-build:test-macros.rs
|
|
|
|
|
2021-03-08 17:43:18 -06:00
|
|
|
#![allow(anonymous_parameters)]
|
|
|
|
|
2020-02-24 03:06:45 -06:00
|
|
|
#[macro_use]
|
|
|
|
extern crate test_macros;
|
|
|
|
|
|
|
|
trait Tr {
|
|
|
|
#[identity_attr]
|
|
|
|
fn method(u8);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|