2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2023-01-31 15:22:11 -06:00
|
|
|
|
|
|
|
// 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(|_| {}, |_| {});
|
|
|
|
}
|