Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[E0573] Something other than type was used #2568

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

MahadMuhammad
Copy link
Contributor

Expected Type got something else - E0573


Testcases:

test.rs:7:26: error: expected type, found variant of ‘Dragon::Born[E0573]
    7 | fn oblivion() -> Dragon::Born { // error!
      |                          ^~~~
      |                          not a type
test.rs:7:1: error: failed to resolve return type
    7 | fn oblivion() -> Dragon::Born { // error!
      | ^~
test.rs:20:26: error: expected type, found variant of ‘Wizard::Saruman[E0573]
   20 |     fn wizard(_: Wizard::Saruman); // error!
      |                          ^~~~~~~
      |                          not a type

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-type.cc: Added last variant name, errorcode & rich location.

gcc/testsuite/ChangeLog:

* rust/compile/issue-2479.rs: Updated comment.

gcc/rust/ChangeLog:

	* typecheck/rust-hir-type-check-type.cc:
	Added last variant name, errorcode & rich location. for enum candidates.

gcc/testsuite/ChangeLog:

	* rust/compile/issue-2479.rs: Updated comment.

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
@philberty philberty added this pull request to the merge queue Aug 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Aug 18, 2023
@CohenArthur CohenArthur added this pull request to the merge queue Aug 22, 2023
Merged via the queue into Rust-GCC:master with commit 8fcbb07 Aug 22, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants