top | item 27153188

(no title)

phaylon | 4 years ago

It's the part of the Rust compiler test suite that makes sure odd syntactical combinations still behave as they are supposed to.

discuss

order

chrismorgan|4 years ago

And I guess it’s 2015 edition, because it’ll fail in 2018 edition Rust: where the 2015 edition has ::u8(0u8), the 2018 edition will need you to write crate::u8(0u8) or self::u8(0u8), since only crates exist at the top level now, rather than the contents of the current crate as well.

Macha|4 years ago

However, the compiler has to continue to be able to compile 2015 edition code, as it is still guaranteed to work and be intermixable with 2018 (and soon, 2021) code in the same application.