diff options
| author | Laine Taffin Altman <alexanderaltman@me.com> | 2025-06-22 15:31:39 -0700 |
|---|---|---|
| committer | Laine Taffin Altman <alexanderaltman@me.com> | 2025-06-22 16:06:25 -0700 |
| commit | b946d0667740ea2a8727b08f22e807eea55fc118 (patch) | |
| tree | a6d5c96265f071e9f6ccbe6b821560ad0e64d863 | |
| parent | 111e9bc64bbdce14122e3676978f2ceefa5bff1a (diff) | |
| download | rust-b946d0667740ea2a8727b08f22e807eea55fc118.tar.gz rust-b946d0667740ea2a8727b08f22e807eea55fc118.zip | |
phantom_variance_markers: fix identifier usage in macro
This shouldn't have worked originally, as far as we can tell.
| -rw-r--r-- | library/core/src/marker/variance.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/marker/variance.rs b/library/core/src/marker/variance.rs index f9638fea225..55fdacb014e 100644 --- a/library/core/src/marker/variance.rs +++ b/library/core/src/marker/variance.rs @@ -18,7 +18,7 @@ macro_rules! phantom_type { pub struct $name:ident <$t:ident> ($($inner:tt)*); )*) => {$( $(#[$attr])* - pub struct $name<$t>($($inner)*) where T: ?Sized; + pub struct $name<$t>($($inner)*) where $t: ?Sized; impl<T> $name<T> where T: ?Sized |
