]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/lint-plugin-forbid-attrs.rs
Rollup merge of #103475 - oli-obk:generic_param_indices, r=lcnr
[rust.git] / src / test / ui-fulldeps / lint-plugin-forbid-attrs.rs
1 // aux-build:lint-plugin-test.rs
2 // ignore-stage1
3
4 #![feature(plugin)]
5 #![plugin(lint_plugin_test)]
6 //~^ WARN use of deprecated attribute `plugin`
7 #![forbid(test_lint)]
8
9 fn lintme() {} //~ ERROR item is named 'lintme'
10
11 #[allow(test_lint)]
12 //~^ ERROR allow(test_lint) incompatible
13 //~| ERROR allow(test_lint) incompatible
14 //~| ERROR allow(test_lint) incompatible
15 pub fn main() {
16     lintme();
17 }