Skip to content

Commit 484362e

Browse files
Mark a fixed test
1 parent c80d9b8 commit 484362e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Diff for: tests/ui/associated-type-bounds/dedup-normalized-2-higher-ranked.stderr renamed to tests/ui/associated-type-bounds/dedup-normalized-2-higher-ranked.current.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
error[E0283]: type annotations needed
2-
--> $DIR/dedup-normalized-2-higher-ranked.rs:23:5
2+
--> $DIR/dedup-normalized-2-higher-ranked.rs:28:5
33
|
44
LL | impls(rigid);
55
| ^^^^^ cannot infer type of the type parameter `U` declared on the function `impls`
66
|
77
= note: cannot satisfy `for<'b> <P as Trait>::Rigid: Bound<'b, _>`
88
note: required by a bound in `impls`
9-
--> $DIR/dedup-normalized-2-higher-ranked.rs:20:13
9+
--> $DIR/dedup-normalized-2-higher-ranked.rs:25:13
1010
|
1111
LL | fn impls<T: for<'b> Bound<'b, U>, U>(_: T) {}
1212
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `impls`

Diff for: tests/ui/associated-type-bounds/dedup-normalized-2-higher-ranked.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//@ revisions: current next
2+
//@ ignore-compare-mode-next-solver (explicit revisions)
3+
//@[next] compile-flags: -Znext-solver
4+
//@[next] check-pass
5+
16
// We try to prove `for<'b> T::Rigid: Bound<'b, ?0>` and have 2 candidates from where-clauses:
27
//
38
// - `for<'a> Bound<'a, String>`
@@ -21,7 +26,7 @@ fn impls<T: for<'b> Bound<'b, U>, U>(_: T) {}
2126

2227
fn test<P: Trait>(rigid: P::Rigid) {
2328
impls(rigid);
24-
//~^ ERROR type annotations needed
29+
//[current]~^ ERROR type annotations needed
2530
}
2631

2732
fn main() {}

0 commit comments

Comments
 (0)