Skip to content

Commit 8ff333e

Browse files
w
1 parent b4cee9b commit 8ff333e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_hir_typeck/src/coercion.rs

+5
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,11 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
607607
// may be interesting for diagnostics (such as trying to coerce `&T` to `&dyn Id<This = U>`),
608608
// so we only bail if there (likely) is another way to convert the types.
609609
if !self.infcx.predicate_may_hold(&root_obligation) {
610+
// FIXME:
611+
if true {
612+
return Err(TypeError::Mismatch);
613+
}
614+
610615
self.probe(|_| {
611616
let ocx = ObligationCtxt::new(&self.infcx);
612617

0 commit comments

Comments
 (0)