mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
10 lines
160 B
Rust
10 lines
160 B
Rust
|
#![feature(trait_alias)]
|
||
|
|
||
|
trait Confusing<F> = Fn(i32) where F: Fn(u32);
|
||
|
|
||
|
fn alias<T: Confusing<F>, F>(_: T, _: F) {}
|
||
|
|
||
|
fn main() {
|
||
|
alias(|_| {}, |_| {});
|
||
|
}
|