Skip to content

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

Description

@chrisoutwright

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;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions