diff options
| author | lcnr <rust@lcnr.de> | 2024-09-05 07:54:13 +0000 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2024-09-05 07:57:17 +0000 |
| commit | a138a9261536ac2bdbb7c01a8aa9dc7d43299cae (patch) | |
| tree | 6f91c0b78e57856dc282c5099c0392cb6b1e94d1 | |
| parent | 69fdd1457d367ce4de044e9784e58a38acf3d847 (diff) | |
| download | rust-a138a9261536ac2bdbb7c01a8aa9dc7d43299cae.tar.gz rust-a138a9261536ac2bdbb7c01a8aa9dc7d43299cae.zip | |
update test description
| -rw-r--r-- | tests/ui/higher-ranked/leak-check/leak-check-in-selection-5-ambig.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/higher-ranked/leak-check/leak-check-in-selection-5-ambig.rs b/tests/ui/higher-ranked/leak-check/leak-check-in-selection-5-ambig.rs index beda719ac20..9a44fd2e64a 100644 --- a/tests/ui/higher-ranked/leak-check/leak-check-in-selection-5-ambig.rs +++ b/tests/ui/higher-ranked/leak-check/leak-check-in-selection-5-ambig.rs @@ -3,9 +3,9 @@ //@ check-pass // The new trait solver does not return region constraints if the goal -// is still ambiguous. This causes the following test to fail with ambiguity, -// even though `(): LeakCheckFailure<'!a, V>` would return `'!a: 'static` -// which would have caused a leak check failure. +// is still ambiguous. However, the `'!a = 'static` constraint from +// `(): LeakCheckFailure<'!a, V>` is also returned via the canonical +// var values, causing this test to compile. trait Ambig {} impl Ambig for u32 {} |
