blob: 66539ae139139bfd57794aa7bfd90ff7d6642d85 [file] [edit]
//@ run-pass
//@ check-run-results
//! Test using `#[rustc_splat]` on self arguments of trait methods.
#![feature(splat)]
#![expect(incomplete_features)]
trait Trait {
fn method(#[rustc_splat] self: Self);
}
impl Trait for (i32, i64) {
fn method(#[rustc_splat] self: Self) {
println!("{self:?}");
}
}
fn main() {
(1_i32, 2_i64).method();
Trait::method(3_i32, 4_i64);
}