rust/tests/ui/lint/enable-unstable-lib-feature.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
315 B
Rust
Raw Normal View History

2015-01-22 19:28:26 -06:00
// Test that enabling an unstable feature disables warnings
// aux-build:stability-cfg2.rs
2015-01-22 19:28:26 -06:00
2018-07-23 06:22:23 -05:00
#![feature(unstable_test_feature)]
2015-01-22 19:28:26 -06:00
#![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() { }