Encountered in minirust/spec/lang/representation.md, encode function of enums when trying to assert_eq!(AbstractByte::Uninit, bytes[offset.bytes()]); while writing the discriminant.
The rust compiler receives the same indexing method as in the markdown, which doesn't compile since List doesn't implement Index. Usually in the above example bytes[offset.bytes()] would get desugared into bytes.index_at(offset.bytes()) by specr-transpile.
Encountered in
minirust/spec/lang/representation.md, encode function of enums when trying toassert_eq!(AbstractByte::Uninit, bytes[offset.bytes()]);while writing the discriminant.The rust compiler receives the same indexing method as in the markdown, which doesn't compile since
Listdoesn't implementIndex. Usually in the above examplebytes[offset.bytes()]would get desugared intobytes.index_at(offset.bytes())by specr-transpile.