]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stable-features.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / stable-features.rs
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
12 fn main() {
13     let _foo: Vec<()> = Vec::new();
14 }