We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69fdd14 commit a138a92Copy full SHA for a138a92
tests/ui/higher-ranked/leak-check/leak-check-in-selection-5-ambig.rs
@@ -3,9 +3,9 @@
3
//@ check-pass
4
5
// 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.
+// 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.
9
10
trait Ambig {}
11
impl Ambig for u32 {}
0 commit comments