rust/tests/rustdoc/auxiliary/ext-anon-fn-params.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
154 B
Rust
Raw Permalink Normal View History

//@ edition: 2015
#![expect(anonymous_parameters)]
pub trait Trait {
fn required(Option<i32>, impl Fn(&str) -> bool);
fn provided([i32; 2]) {}
}