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

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

17 lines
353 B
Rust
Raw Normal View History

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