mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
16 lines
382 B
Rust
16 lines
382 B
Rust
// aux-build:lint-plugin-test.rs
|
|
// ignore-stage1
|
|
// compile-flags: -F test-lint
|
|
|
|
#![feature(plugin)]
|
|
#![plugin(lint_plugin_test)]
|
|
//~^ WARN use of deprecated attribute `plugin`
|
|
fn lintme() { } //~ ERROR item is named 'lintme'
|
|
|
|
#[allow(test_lint)] //~ ERROR allow(test_lint) incompatible
|
|
//~| ERROR allow(test_lint) incompatible
|
|
|
|
pub fn main() {
|
|
lintme();
|
|
}
|