Open matievisthekat opened 2 years ago
This issue refers to the usage of PhantomData in [part 19](https://arzg.github.io/lang/19/#:~:text=%23%5Bderive(Debug)%5D%0Apub%20struct%20Idx%3CT%3E%20%7B%0A%20%20%20%20raw%3A%20u32%2C%0A%20%20%20%20_phantom%3A%20PhantomData%3Cfn()%20%2D%3E%20T%3E%2C%0A%7D)
PhantomData
The code works, however to use PhantomData you need to use std::marker::PhantomData first.
use std::marker::PhantomData
not a major issue though. I'm sure most people can figure it out
This issue refers to the usage of
PhantomData
in [part 19](https://arzg.github.io/lang/19/#:~:text=%23%5Bderive(Debug)%5D%0Apub%20struct%20Idx%3CT%3E%20%7B%0A%20%20%20%20raw%3A%20u32%2C%0A%20%20%20%20_phantom%3A%20PhantomData%3Cfn()%20%2D%3E%20T%3E%2C%0A%7D)The code works, however to use
PhantomData
you need touse std::marker::PhantomData
first.not a major issue though. I'm sure most people can figure it out