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

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

16 lines
382 B
Rust
Raw Normal View History

// aux-build:lint-plugin-test.rs
2014-06-18 15:46:48 -05:00
// ignore-stage1
// compile-flags: -F test-lint
#![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
fn lintme() { } //~ ERROR item is named 'lintme'
#[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();
}