summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/enable-unstable-lib-feature.rs
blob: aa6a973d7bd85709e62bfd02ff55d3a8ebac2b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test that enabling an unstable feature disables warnings

// aux-build:stability-cfg2.rs

#![feature(unstable_test_feature)]
#![deny(non_snake_case)] // To trigger a hard error

// Shouldn't generate a warning about unstable features
extern crate stability_cfg2;

pub fn BOGUS() { } //~ ERROR

pub fn main() { }