Skip to content

Commit

Permalink
Add a type annotation to improve error messages with type mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhenrymantilla committed Jan 21, 2022
1 parent b46c6f2 commit b8d598f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1146,5 +1146,5 @@ pub macro pin($value:expr $(,)?) {
//
// Finally, we don't hit problems _w.r.t._ the privacy of the `pointer` field, or the
// unqualified `Pin` name, thanks to `decl_macro`s being _fully_ hygienic (`def_site` hygiene).
Pin { pointer: &mut { $value } }
Pin::<&mut _> { pointer: &mut { $value } }
}

0 comments on commit b8d598f

Please sign in to comment.