rust/tests/ui/unboxed-closures
Esteban Küber e7618756c0 On type error involving closure, avoid ICE
When we encounter a type error involving a closure, we try to typeck
prior closure invocations to see if they influenced the current expected
type. When trying to do so, ensure that the closure was defined in our
current scope.

Fix #116658.
2023-10-12 23:29:02 +00:00
..
auxiliary
issue-18652.rs
issue-18661.rs
issue-30906.rs
issue-30906.stderr
issue-53448.rs
non-tupled-arg-mismatch.rs
non-tupled-arg-mismatch.stderr
non-tupled-call.rs
non-tupled-call.stderr
type-id-higher-rank.rs
unboxed-closure-feature-gate.rs
unboxed-closure-feature-gate.stderr
unboxed-closure-illegal-move.rs
unboxed-closure-illegal-move.stderr
unboxed-closure-immutable-capture.rs
unboxed-closure-immutable-capture.stderr
unboxed-closure-no-cyclic-sig.rs
unboxed-closure-no-cyclic-sig.stderr
unboxed-closure-region.rs
unboxed-closure-region.stderr
unboxed-closure-sugar-default.rs
unboxed-closure-sugar-default.stderr
unboxed-closure-sugar-equiv.rs
unboxed-closure-sugar-equiv.stderr
unboxed-closure-sugar-lifetime-elision.rs
unboxed-closure-sugar-lifetime-elision.stderr
unboxed-closure-sugar-not-used-on-fn.rs
unboxed-closure-sugar-not-used-on-fn.stderr
unboxed-closure-sugar-region.rs
unboxed-closure-sugar-region.stderr
unboxed-closure-sugar-used-on-struct-1.rs
unboxed-closure-sugar-used-on-struct-1.stderr
unboxed-closure-sugar-used-on-struct-3.rs
unboxed-closure-sugar-used-on-struct-3.stderr
unboxed-closure-sugar-used-on-struct.rs
unboxed-closure-sugar-used-on-struct.stderr
unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs
unboxed-closure-sugar-wrong-number-number-type-parameters-1.stderr
unboxed-closure-sugar-wrong-number-number-type-parameters-3.rs
unboxed-closure-sugar-wrong-number-number-type-parameters-3.stderr
unboxed-closure-sugar-wrong-number-number-type-parameters.rs
unboxed-closure-sugar-wrong-number-number-type-parameters.stderr
unboxed-closure-sugar-wrong-trait.rs
unboxed-closure-sugar-wrong-trait.stderr
unboxed-closures-all-traits.rs
unboxed-closures-blanket-fn-mut.rs
unboxed-closures-blanket-fn.rs
unboxed-closures-borrow-conflict.rs
unboxed-closures-borrow-conflict.stderr
unboxed-closures-boxed.rs
unboxed-closures-by-ref.rs
unboxed-closures-call-fn-autoderef.rs
unboxed-closures-call-sugar-autoderef.rs
unboxed-closures-call-sugar-object-autoderef.rs
unboxed-closures-call-sugar-object.rs
unboxed-closures-counter-not-moved.rs
unboxed-closures-counter-not-moved.stderr
unboxed-closures-cross-crate.rs
unboxed-closures-direct-sugary-call.rs
unboxed-closures-drop.rs
unboxed-closures-extern-fn-hr.rs
unboxed-closures-extern-fn.rs
unboxed-closures-failed-recursive-fn-1.rs
unboxed-closures-failed-recursive-fn-1.stderr
unboxed-closures-failed-recursive-fn-2.rs
unboxed-closures-failed-recursive-fn-2.stderr
unboxed-closures-fn-as-fnmut-and-fnonce.rs
unboxed-closures-fnmut-as-fn.rs
unboxed-closures-fnmut-as-fn.stderr
unboxed-closures-fnmut-as-fnonce.rs
unboxed-closures-generic.rs
unboxed-closures-infer-arg-types-from-expected-bound.rs
unboxed-closures-infer-arg-types-from-expected-object-type.rs
unboxed-closures-infer-arg-types-w-bound-regs-from-expected-bound.rs
unboxed-closures-infer-argument-types-two-region-pointers.rs
unboxed-closures-infer-argument-types-two-region-pointers.stderr
unboxed-closures-infer-explicit-call-early.rs
unboxed-closures-infer-fn-once-move-from-projection.rs
unboxed-closures-infer-fn-once-move-from-projection.stderr
unboxed-closures-infer-fnmut-calling-fnmut-no-mut.rs
unboxed-closures-infer-fnmut-calling-fnmut-no-mut.stderr
unboxed-closures-infer-fnmut-calling-fnmut.rs
unboxed-closures-infer-fnmut-missing-mut.rs
unboxed-closures-infer-fnmut-missing-mut.stderr
unboxed-closures-infer-fnmut-move-missing-mut.rs
unboxed-closures-infer-fnmut-move-missing-mut.stderr
unboxed-closures-infer-fnmut-move.rs
unboxed-closures-infer-fnmut.rs
unboxed-closures-infer-fnonce-call-twice.rs
unboxed-closures-infer-fnonce-call-twice.stderr
unboxed-closures-infer-fnonce-move-call-twice.rs
unboxed-closures-infer-fnonce-move-call-twice.stderr
unboxed-closures-infer-fnonce-move.rs
unboxed-closures-infer-fnonce.rs
unboxed-closures-infer-kind.rs
unboxed-closures-infer-recursive-fn.rs
unboxed-closures-infer-upvar.rs
unboxed-closures-manual-impl.rs
unboxed-closures-monomorphization.rs
unboxed-closures-move-from-projection-issue-30046.rs
unboxed-closures-move-mutable.rs
unboxed-closures-move-mutable.stderr
unboxed-closures-move-some-upvars-in-by-ref-closure.rs
unboxed-closures-mutate-upvar.rs
unboxed-closures-mutate-upvar.stderr
unboxed-closures-mutated-upvar-from-fn-closure.rs
unboxed-closures-mutated-upvar-from-fn-closure.stderr
unboxed-closures-prelude.rs
unboxed-closures-recursive-fn-using-fn-mut.rs
unboxed-closures-recursive-fn-using-fn-mut.stderr
unboxed-closures-simple.rs
unboxed-closures-single-word-env.rs
unboxed-closures-static-call-fn-once.rs
unboxed-closures-static-call-wrong-trait.rs
unboxed-closures-static-call-wrong-trait.stderr
unboxed-closures-sugar-object.rs
unboxed-closures-type-mismatch-closure-from-another-scope.rs On type error involving closure, avoid ICE 2023-10-12 23:29:02 +00:00
unboxed-closures-type-mismatch-closure-from-another-scope.stderr On type error involving closure, avoid ICE 2023-10-12 23:29:02 +00:00
unboxed-closures-type-mismatch.rs
unboxed-closures-type-mismatch.stderr
unboxed-closures-unique-type-id.rs
unboxed-closures-unsafe-extern-fn.rs
unboxed-closures-unsafe-extern-fn.stderr
unboxed-closures-wrong-abi.rs
unboxed-closures-wrong-abi.stderr
unboxed-closures-wrong-arg-type-extern-fn.rs
unboxed-closures-wrong-arg-type-extern-fn.stderr
unboxed-closures-zero-args.rs