rust/tests/ui/proc-macro/trait-fn-args-2015.rs
Lukas Wirth 49969468b5 Add missing 2015 edition directives
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
2025-06-03 11:45:58 +02:00

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() {}