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> {
1398
1398
/// whether any of the constraints were too strong. In particular,
1399
1399
/// we want to check for a case where a universally quantified
1400
1400
/// region exceeded its bounds. Consider:
1401
- /// ```compile_fail,E0312
1401
+ /// ```ignore( compile_fail,E0312)
1402
1402
/// fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
1403
1403
/// ```
1404
1404
/// In this case, returning `x` requires `&'a u32 <: &'b u32`
@@ -1451,7 +1451,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1451
1451
/// <https://smallcultfollowing.com/babysteps/blog/2019/01/17/polonius-and-region-errors/>
1452
1452
///
1453
1453
/// In the canonical example
1454
- /// ```compile_fail,E0312
1454
+ /// ```ignore( compile_fail,E0312)
1455
1455
/// fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
1456
1456
/// ```
1457
1457
/// 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