mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
15 lines
299 B
Rust
15 lines
299 B
Rust
![]() |
//@ check-pass
|
||
|
|
||
|
// Makes sure that we only consider `Self` supertrait predicates while
|
||
|
// elaborating during closure signature deduction.
|
||
|
|
||
|
#![feature(trait_alias)]
|
||
|
|
||
|
trait Confusing<F> = Fn(i32) where F: Fn(u32);
|
||
|
|
||
|
fn alias<T: Confusing<F>, F>(_: T, _: F) {}
|
||
|
|
||
|
fn main() {
|
||
|
alias(|_| {}, |_| {});
|
||
|
}
|