We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3137d9 commit d8337eeCopy full SHA for d8337ee
compiler/rustc_infer/src/infer/outlives/test_type_match.rs
@@ -57,7 +57,15 @@ pub fn extract_verify_if_eq<'tcx>(
57
}
58
59
} else {
60
- // The region does not contain any inference variables.
+ // 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`.
69
Some(verify_if_eq.bound)
70
71
0 commit comments