Skip to content

Commit a138a92

Browse files
committed
update test description
1 parent 69fdd14 commit a138a92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/higher-ranked/leak-check/leak-check-in-selection-5-ambig.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
//@ check-pass
44

55
// The new trait solver does not return region constraints if the goal
6-
// is still ambiguous. This causes the following test to fail with ambiguity,
7-
// even though `(): LeakCheckFailure<'!a, V>` would return `'!a: 'static`
8-
// which would have caused a leak check failure.
6+
// is still ambiguous. However, the `'!a = 'static` constraint from
7+
// `(): LeakCheckFailure<'!a, V>` is also returned via the canonical
8+
// var values, causing this test to compile.
99

1010
trait Ambig {}
1111
impl Ambig for u32 {}

0 commit comments

Comments
 (0)