We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4454a72 commit c6156a6Copy full SHA for c6156a6
compiler/rustc_hir_analysis/src/hir_ty_lowering/dyn_compatibility.rs
@@ -103,6 +103,10 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
103
let guar = self.report_trait_object_with_no_traits_error(span, &trait_bounds);
104
return Ty::new_error(tcx, guar);
105
}
106
+ // Uwu
107
+ if let Err(guar) = trait_bounds.error_reported() {
108
+ return Ty::new_error(tcx, guar);
109
+ }
110
111
// Check that there are no gross dyn-compatibility violations;
112
// most importantly, that the supertraits don't contain `Self`,
0 commit comments