Skip to content

Commit

Permalink
Update NLL HRTB type ascription blessed expectations
Browse files Browse the repository at this point in the history
Some of these tests have reached parity with the migrate-mode output.
  • Loading branch information
lqd committed Aug 23, 2021
1 parent 820e268 commit 7b0e564
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
8 changes: 0 additions & 8 deletions src/test/ui/hrtb/due-to-where-clause.nll.stderr

This file was deleted.

8 changes: 0 additions & 8 deletions src/test/ui/hrtb/hrtb-cache-issue-54302.nll.stderr

This file was deleted.

7 changes: 5 additions & 2 deletions src/test/ui/hrtb/hrtb-just-for-static.nll.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ LL | want_hrtb::<&'a u32>()
|
= help: consider replacing `'a` with `'static`

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

error: aborting due to 3 previous errors

8 changes: 0 additions & 8 deletions src/test/ui/issues/issue-54302.nll.stderr

This file was deleted.

0 comments on commit 7b0e564

Please sign in to comment.