about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2024-09-21 07:05:51 +0000
committerlcnr <rust@lcnr.de>2024-10-15 13:26:59 +0200
commit30ec8bb5e96faeb363b6c195f60e8a76f8c92374 (patch)
treede4093690fcadf3728a77e6922a8491f19439df2
parent7aeb07a58326e9c2f1876de62877bd95a04ec35b (diff)
downloadrust-30ec8bb5e96faeb363b6c195f60e8a76f8c92374.tar.gz
rust-30ec8bb5e96faeb363b6c195f60e8a76f8c92374.zip
update test description
-rw-r--r--tests/ui/higher-ranked/leak-check/leak-check-in-selection-5-ambig.rs6
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 {}