File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_borrowck/src/region_infer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1398,7 +1398,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
13981398 /// whether any of the constraints were too strong. In particular,
13991399 /// we want to check for a case where a universally quantified
14001400 /// region exceeded its bounds. Consider:
1401- /// ```compile_fail,E0312
1401+ /// ```ignore( compile_fail,E0312)
14021402 /// fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
14031403 /// ```
14041404 /// In this case, returning `x` requires `&'a u32 <: &'b u32`
@@ -1451,7 +1451,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
14511451 /// <https://smallcultfollowing.com/babysteps/blog/2019/01/17/polonius-and-region-errors/>
14521452 ///
14531453 /// In the canonical example
1454- /// ```compile_fail,E0312
1454+ /// ```ignore( compile_fail,E0312)
14551455 /// fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
14561456 /// ```
14571457 /// returning `x` requires `&'a u32 <: &'b u32` and hence we establish (transitively) a
You can’t perform that action at this time.
0 commit comments