DanielKeep.github.io icon indicating copy to clipboard operation
DanielKeep.github.io copied to clipboard

Request for Updated Version: running practical-intro-to-macros.html

Open chrisoutwright opened this issue 1 year ago • 0 comments

I cannot get to run the tuorial with rust 1.62.1. Would it be possible to provide a updated version of the code?

I have Syntax issues mem: [u64, .. 2] and complaints on generic argument count amongst others. Should Rust code not be backwards compatible (I am an absolute beginner, but this I read right from the get-go and am confused that it does not hold).

// Syntax predates Rust 1.0! pub trait Index<Sized? Index, Sized? Result> for Sized? { /// The method for the indexing (Foo[Bar]) operation fn index<'a>(&'a self, index: &Index) -> &'a Result; }

chrisoutwright avatar Aug 02 '22 23:08 chrisoutwright