mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
change to known bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user