We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ce76a commit 7710d95Copy full SHA for 7710d95
src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs
@@ -42,7 +42,7 @@ impl fmt::Display for ConstraintCategory {
42
// Must end with a space. Allows for empty names to be provided.
43
match self {
44
ConstraintCategory::Assignment => write!(f, "assignment "),
45
- ConstraintCategory::Return => write!(f, "return "),
+ ConstraintCategory::Return => write!(f, "returning this value "),
46
ConstraintCategory::Cast => write!(f, "cast "),
47
ConstraintCategory::CallArgument => write!(f, "argument "),
48
_ => write!(f, ""),
0 commit comments