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).
11 lines
385 B
Rust
11 lines
385 B
Rust
#![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
|
|
//~^ ERROR malformed `feature`
|
|
//~| ERROR malformed `feature`
|
|
//~| ERROR unknown feature `foo`
|
|
//~| ERROR unknown feature `foo_bar_baz`
|
|
#![feature] //~ ERROR malformed `feature` attribute
|
|
#![feature = "foo"] //~ ERROR malformed `feature` attribute
|
|
#![feature(test_removed_feature)] //~ ERROR: feature has been removed
|
|
|
|
fn main() {}
|