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
316 B
Rust
Raw Normal View History

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