We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b3ca00 commit 4382968Copy full SHA for 4382968
1 file changed
src/type-coercions.md
@@ -78,6 +78,16 @@ r[coerce.site.return]
78
}
79
```
80
81
+r[coerce.site.assignment]
82
+* Assigned value operands in assignment expressions
83
+
84
+ For example, `y` is coerced to have type `&i8` in the following:
85
+ ```rust
86
+ let mut x = &0i8;
87
+ let y = &mut 42i8;
88
+ x = y;
89
+ ```
90
91
r[coerce.site.subexpr]
92
If the expression in one of these coercion sites is a coercion-propagating
93
expression, then the relevant sub-expressions in that expression are also
0 commit comments