DanielKeep.github.io
DanielKeep.github.io copied to clipboard
Request for Updated Version: running practical-intro-to-macros.html
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;
}