rust/tests/ui/anon-params/anon-params-trait-method-multiple.rs
2025-12-13 00:54:20 +09:00

11 lines
269 B
Rust

//! regression test for <https://github.com/rust-lang/rust/issues/34074>
//@ edition: 2015
//@ check-pass
// Make sure several unnamed function parameters don't conflict with each other
trait Tr {
#[allow(anonymous_parameters)]
fn f(u8, u8) {}
}
fn main() {}