mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 06:14:55 +00:00
fn-trait-closure test now pass on new solver
This commit is contained in:
parent
6155a80380
commit
b905f80036
@ -1,12 +1,5 @@
|
|||||||
// compile-flags: -Ztrait-solver=next
|
// compile-flags: -Ztrait-solver=next
|
||||||
// known-bug: unknown
|
// check-pass
|
||||||
// failure-status: 101
|
|
||||||
// dont-check-compiler-stderr
|
|
||||||
|
|
||||||
// This test will fail until we fix `FulfillmentCtxt::relationships`. That's
|
|
||||||
// because we create a type variable for closure upvar types, which is not
|
|
||||||
// constrained until after we try to do fallback on diverging type variables.
|
|
||||||
// Thus, we will call that function, which is unimplemented.
|
|
||||||
|
|
||||||
fn require_fn(_: impl Fn() -> i32) {}
|
fn require_fn(_: impl Fn() -> i32) {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user