lunacookies / eldiro

Learn to make your own programming language with Rust
https://lunacookies.github.io/lang/
Apache License 2.0
253 stars 18 forks source link

part 19 missing use statement #7

Open matievisthekat opened 2 years ago

matievisthekat commented 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)

The code works, however to use PhantomData you need to use std::marker::PhantomData first.

not a major issue though. I'm sure most people can figure it out