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