summaryrefslogtreecommitdiffstats
path: root/tests/ui-fulldeps/plugin/lint-plugin-forbid-cmdline.rs
blob: b9d1aa85a69308694fae84a4baabb14c86518989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// aux-build:lint-plugin-test.rs
// ignore-stage1
// compile-flags: -F test-lint

#![feature(plugin)]
#![plugin(lint_plugin_test)]
//~^ WARN use of deprecated attribute `plugin`
fn lintme() { } //~ ERROR item is named 'lintme'

#[allow(test_lint)] //~ ERROR allow(test_lint) incompatible
                    //~| ERROR allow(test_lint) incompatible

pub fn main() {
    lintme();
}