change to known bug

This commit is contained in:
lcnr 2023-08-18 23:59:49 +02:00
parent 11716830ac
commit ee04744e64
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,5 @@
// compile-flags: -Ztrait-solver=next
// known-bug: trait-system-refactor-initiative#60
// Generalizing a projection containing an inference variable
// which cannot be named by the `root_vid` can result in ambiguity.
@ -71,5 +72,4 @@ fn bound<T: ?Sized, U: ?Sized, V: ?Sized>()
fn main() {
bound::<<Rigid as IdHigherRankedBound>::Assoc, <Wrapper<Leaf> as Id>::Assoc, _>()
//~^ ERROR type annotations needed
}

View File

@ -1,5 +1,5 @@
error[E0282]: type annotations needed
--> $DIR/generalize-proj-new-universe-index-2.rs:72:5
--> $DIR/generalize-proj-new-universe-index-2.rs:74:5
|
LL | bound::<<Rigid as IdHigherRankedBound>::Assoc, <Wrapper<Leaf> as Id>::Assoc, _>()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `V` declared on the function `bound`