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