]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/lint-plugin-forbid-cmdline.rs
Rollup merge of #107735 - edward-shen:edward-shen/mailmap, r=dtolnay
[rust.git] / tests / ui-fulldeps / lint-plugin-forbid-cmdline.rs
1 // aux-build:lint-plugin-test.rs
2 // ignore-stage1
3 // compile-flags: -F test-lint
4
5 #![feature(plugin)]
6 #![plugin(lint_plugin_test)]
7 //~^ WARN use of deprecated attribute `plugin`
8 fn lintme() { } //~ ERROR item is named 'lintme'
9
10 #[allow(test_lint)] //~ ERROR allow(test_lint) incompatible
11                     //~| ERROR allow(test_lint) incompatible
12
13 pub fn main() {
14     lintme();
15 }