tweak comment on TypeTest to be more accurate
This commit is contained in:
parent
4f43c5b1e7
commit
03bfb0f316
1 changed files with 6 additions and 4 deletions
|
|
@ -122,10 +122,12 @@ pub struct Constraint {
|
|||
/// checks that they meet certain extra criteria. If not, an error
|
||||
/// can be issued.
|
||||
///
|
||||
/// One reason for this is that these type tests always boil down to a
|
||||
/// check like `'a: 'x` where `'a` is a universally quantified region
|
||||
/// -- and therefore not one whose value is really meant to be
|
||||
/// *inferred*, precisely. Another reason is that these type tests can
|
||||
/// One reason for this is that these type tests typically boil down
|
||||
/// to a check like `'a: 'x` where `'a` is a universally quantified
|
||||
/// region -- and therefore not one whose value is really meant to be
|
||||
/// *inferred*, precisely (this is not always the case: one can have a
|
||||
/// type test like `<Foo as Trait<'?0>>::Bar: 'x`, where `'?0` is an
|
||||
/// inference variable). Another reason is that these type tests can
|
||||
/// involve *disjunction* -- that is, they can be satisfied in more
|
||||
/// than one way.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue