Skip to content

Commit b8d598f

Browse files
Add a type annotation to improve error messages with type mismatches
1 parent b46c6f2 commit b8d598f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/pin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1146,5 +1146,5 @@ pub macro pin($value:expr $(,)?) {
11461146
//
11471147
// Finally, we don't hit problems _w.r.t._ the privacy of the `pointer` field, or the
11481148
// unqualified `Pin` name, thanks to `decl_macro`s being _fully_ hygienic (`def_site` hygiene).
1149-
Pin { pointer: &mut { $value } }
1149+
Pin::<&mut _> { pointer: &mut { $value } }
11501150
}

0 commit comments

Comments
 (0)