rust/tests/ui-fulldeps/plugin/lint-plugin-forbid-attrs.rs

17 lines
353 B
Rust
Raw Normal View History

// aux-build:lint-plugin-test.rs
2014-06-18 15:46:48 -05:00
// ignore-stage1
#![feature(plugin)]
#![plugin(lint_plugin_test)]
2019-10-03 02:33:28 -05:00
//~^ WARN use of deprecated attribute `plugin`
2014-06-18 15:46:48 -05:00
#![forbid(test_lint)]
fn lintme() {} //~ ERROR item is named 'lintme'
2014-06-18 15:46:48 -05:00
#[allow(test_lint)]
//~^ ERROR allow(test_lint) incompatible
//~| ERROR allow(test_lint) incompatible
2014-06-18 15:46:48 -05:00
pub fn main() {
lintme();
}