]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/enable-unstable-lib-feature.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / enable-unstable-lib-feature.rs
1 // Test that enabling an unstable feature disables warnings
2
3 // aux-build:stability-cfg2.rs
4
5 #![feature(unstable_test_feature)]
6 #![deny(non_snake_case)] // To trigger a hard error
7
8 // Shouldn't generate a warning about unstable features
9 extern crate stability_cfg2;
10
11 pub fn BOGUS() { } //~ ERROR
12
13 pub fn main() { }