Skip to content

Commit d8337ee

Browse files
committed
try to clarify confusing comment
1 parent c3137d9 commit d8337ee

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

compiler/rustc_infer/src/infer/outlives/test_type_match.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ pub fn extract_verify_if_eq<'tcx>(
5757
}
5858
}
5959
} else {
60-
// The region does not contain any inference variables.
60+
// The region does not contain any bound variables, so we don't need
61+
// to do any substitution.
62+
//
63+
// Example:
64+
//
65+
// for<'a> <T as Foo<'a>>::Item: 'b
66+
//
67+
// In this case, we've now matched and found a value for
68+
// `'a`, but it doesn't affect the bound `'b`.
6169
Some(verify_if_eq.bound)
6270
}
6371
}

0 commit comments

Comments
 (0)