]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/lint-plugin-forbid-attrs.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 pub fn main() {
15     lintme();
16 }