1 // Test that enabling an unstable feature disables warnings
3 // aux-build:stability-cfg2.rs
5 #![feature(unstable_test_feature)]
6 #![deny(non_snake_case)] // To trigger a hard error
8 // Shouldn't generate a warning about unstable features
9 #[allow(unused_extern_crates)]
10 extern crate stability_cfg2;
12 pub fn BOGUS() { } //~ ERROR