mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00

The version string is difficult to properly normalize out, and removing it isn't a huge deal (the user can query version info easily through `rustc --version` or `cargo --version`). The normalization options were all non-ideal: - Per-test version string normalization is nasty to maintain, and we need to maintain `n` copies of it. - Centralized compiletest normalization (with a directive opt-out) is also not ideal, because `cfg(version(..))` tests can't have those accidentally normalized out (and you'd have to remember to opt-out).
6 lines
112 B
Rust
6 lines
112 B
Rust
#![feature(doc_keyword)] //~ ERROR
|
|
#![feature(doc_primitive)] //~ ERROR
|
|
#![crate_type = "lib"]
|
|
|
|
pub fn foo() {}
|