Skip to content

Commit cf31a29

Browse files
committed
Mark ignore on error code docs in compiler/rustc_borrowck/src/region_infer/mod.rs
1 parent c2ad8d2 commit cf31a29

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_borrowck/src/region_infer

1 file changed

+2
-2
lines changed

compiler/rustc_borrowck/src/region_infer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)