mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
18 lines
297 B
Rust
18 lines
297 B
Rust
// 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() {}
|