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

#![feature(plugin)]
#![plugin(lint_plugin_test)]
//~^ WARN use of deprecated attribute `plugin`
#![forbid(test_lint)]

fn lintme() {} //~ ERROR item is named 'lintme'

#[allow(test_lint)]
//~^ ERROR allow(test_lint) incompatible
//~| ERROR allow(test_lint) incompatible
pub fn main() {
    lintme();
}