1 // Testing that the stable_features lint catches use of stable 2 // language and lib features. 3 4 #![deny(stable_features)] 5 6 #![feature(test_accepted_feature)] 7 //~^ ERROR the feature `test_accepted_feature` has been stable since 1.0.0 8 9 #![feature(rust1)] 10 //~^ ERROR the feature `rust1` has been stable since 1.0.0 11 main()12fn main() { 13 let _foo: Vec<()> = Vec::new(); 14 } 15