summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/gated-bad-feature.rs
blob: 51f2db5556e2b2963bd97e7262daa0b1ef2ca843 (plain)
1
2
3
4
5
6
7
8
9
10
#![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() {}