2019-03-12 00:49:17 +00:00
|
|
|
// aux-build:lint-plugin-test.rs
|
2014-06-18 13:46:48 -07:00
|
|
|
// ignore-stage1
|
|
|
|
// compile-flags: -F test-lint
|
|
|
|
|
2014-12-31 20:43:46 -08:00
|
|
|
#![feature(plugin)]
|
2015-02-06 13:56:38 -08:00
|
|
|
#![plugin(lint_plugin_test)]
|
2019-10-03 09:33:28 +02:00
|
|
|
//~^ WARN use of deprecated attribute `plugin`
|
2014-06-18 13:46:48 -07:00
|
|
|
fn lintme() { } //~ ERROR item is named 'lintme'
|
|
|
|
|
|
|
|
#[allow(test_lint)] //~ ERROR allow(test_lint) overruled by outer forbid(test_lint)
|
2020-01-08 20:02:10 +03:00
|
|
|
//~| ERROR allow(test_lint) overruled by outer forbid(test_lint)
|
|
|
|
//~| ERROR allow(test_lint) overruled by outer forbid(test_lint)
|
2014-06-18 13:46:48 -07:00
|
|
|
pub fn main() {
|
|
|
|
lintme();
|
|
|
|
}
|