don't mention specific region numbers in the ~ERROR message

This commit is contained in:
Niko Matsakis 2019-10-08 05:11:50 -04:00
parent 65fc086dba
commit 03b2fff40e
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ where
T: Anything<'b, 'c>,
{
with_signature(cell, t, |cell, t| require(cell, t));
//~^ ERROR associated type `<T as Anything<'_#5r, '_#6r>>::AssocType` may not live long enough
//~^ ERROR may not live long enough
}
#[rustc_regions]
@ -46,7 +46,7 @@ where
'a: 'a,
{
with_signature(cell, t, |cell, t| require(cell, t));
//~^ ERROR associated type `<T as Anything<'_#6r, '_#7r>>::AssocType` may not live long enough
//~^ ERROR may not live long enough
}
#[rustc_regions]