rust/tests/ui-fulldeps/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 20:46:48 +00:00
// ignore-stage1
// compile-flags: -F test-lint
#![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
fn lintme() { } //~ ERROR item is named 'lintme'
#[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();
}