Skip to content

Commit b946d06

Browse files
phantom_variance_markers: fix identifier usage in macro
This shouldn't have worked originally, as far as we can tell.
1 parent 111e9bc commit b946d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/marker/variance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ macro_rules! phantom_type {
1818
pub struct $name:ident <$t:ident> ($($inner:tt)*);
1919
)*) => {$(
2020
$(#[$attr])*
21-
pub struct $name<$t>($($inner)*) where T: ?Sized;
21+
pub struct $name<$t>($($inner)*) where $t: ?Sized;
2222

2323
impl<T> $name<T>
2424
where T: ?Sized

0 commit comments

Comments
 (0)