]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/lint-plugin-forbid-cmdline.rs
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
[rust.git] / src / test / 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                     //~| ERROR allow(test_lint)
13 pub fn main() {
14     lintme();
15 }