os-rust/src/test/ui-fulldeps/lint-plugin-forbid-cmdline.rs

16 lines
514 B
Rust
Raw Normal View History

// aux-build:lint-plugin-test.rs
2014-06-18 13:46:48 -07:00
// ignore-stage1
// compile-flags: -F test-lint
#![feature(plugin)]
#![plugin(lint_plugin_test)]
2019-10-03 09:33:28 +02:00
//~^ WARN use of deprecated attribute `plugin`
2014-06-18 13:46:48 -07:00
fn lintme() { } //~ ERROR item is named 'lintme'
#[allow(test_lint)] //~ ERROR allow(test_lint) overruled by outer forbid(test_lint)
2020-01-08 20:02:10 +03:00
//~| ERROR allow(test_lint) overruled by outer forbid(test_lint)
//~| ERROR allow(test_lint) overruled by outer forbid(test_lint)
2014-06-18 13:46:48 -07:00
pub fn main() {
lintme();
}