tweak comment on TypeTest to be more accurate

This commit is contained in:
Niko Matsakis 2017-12-19 04:18:15 -05:00
parent 4f43c5b1e7
commit 03bfb0f316

View file

@ -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.
///