fix: Insert a generic arg for impl Trait when lowering generic args

This commit is contained in:
Shoyu Vanilla 2024-08-05 00:06:29 +09:00
parent aa00ddcf65
commit 8fa454d7aa
2 changed files with 24 additions and 0 deletions

View file

@ -2122,3 +2122,22 @@ fn test() {
"#,
)
}
#[test]
fn issue_17191() {
check_types(
r#"
trait A {
type Item;
}
trait B<T> {}
fn foo<T: B<impl A>>() {}
fn test() {
let f = foo;
//^ fn foo<{unknown}>()
}"#,
);
}