Skip to content

rhs accepts place and value expressions#2250

Open
tshepang wants to merge 1 commit intorust-lang:masterfrom
tshepang:patch-4
Open

rhs accepts place and value expressions#2250
tshepang wants to merge 1 commit intorust-lang:masterfrom
tshepang:patch-4

Conversation

@tshepang
Copy link
Copy Markdown
Member

@tshepang tshepang commented May 2, 2026

From how I understand things, both place expressions and value expressions are accepted as assigned value operands. I assume this is the case because if I read Reference right...

// rhs is value expression
let foo = "value";

// rhs is place expression
let bar = foo;

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants