Skip to content

Conversation

philberty
Copy link
Member

Fixes #2477

Fixes #2477

gcc/rust/ChangeLog:

	* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit):
	We need to check if a function context exists

gcc/testsuite/ChangeLog:

	* rust/compile/issue-2477.rs: New test.

Signed-off-by: Philip Herron <[email protected]>
@philberty philberty added the bug label Jul 29, 2023
@philberty philberty self-assigned this Jul 29, 2023
@philberty philberty enabled auto-merge July 29, 2023 23:21
@philberty philberty added this pull request to the merge queue Jul 30, 2023
Merged via the queue into master with commit 5ad0feb Jul 30, 2023
@philberty philberty deleted the phil/return-err branch July 31, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

ICE - return outside function
1 participant