This code probably shouldn't compile, but it does.
#![feature(splat)]
#![expect(incomplete_features)]
fn main() {
(|#[splat] x: i32| {
println!("{x}");
})(1);
}
cc @teor2345
Meta
Reproducible on the playground with version 1.98.0-nightly (2026-06-29 096694416a4184070914)
This code probably shouldn't compile, but it does.
cc @teor2345
Meta
Reproducible on the playground with version
1.98.0-nightly (2026-06-29 096694416a4184070914)