Skip to content

Commit 7b0e564

Browse files
committed
Update NLL HRTB type ascription blessed expectations
Some of these tests have reached parity with the migrate-mode output.
1 parent 820e268 commit 7b0e564

4 files changed

+5
-26
lines changed

src/test/ui/hrtb/due-to-where-clause.nll.stderr

-8
This file was deleted.

src/test/ui/hrtb/hrtb-cache-issue-54302.nll.stderr

-8
This file was deleted.

src/test/ui/hrtb/hrtb-just-for-static.nll.stderr

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ LL | want_hrtb::<&'a u32>()
1717
|
1818
= help: consider replacing `'a` with `'static`
1919

20-
error: higher-ranked subtype error
20+
error: implementation of `Foo` is not general enough
2121
--> $DIR/hrtb-just-for-static.rs:30:5
2222
|
2323
LL | want_hrtb::<&'a u32>()
24-
| ^^^^^^^^^^^^^^^^^^^^
24+
| ^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
25+
|
26+
= note: `Foo<&'0 isize>` would have to be implemented for the type `&u32`, for any lifetime `'0`...
27+
= note: ...but `Foo<&'1 isize>` is actually implemented for the type `&'1 u32`, for some specific lifetime `'1`
2528

2629
error: aborting due to 3 previous errors
2730

src/test/ui/issues/issue-54302.nll.stderr

-8
This file was deleted.

0 commit comments

Comments
 (0)