mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
14 lines
261 B
Rust
14 lines
261 B
Rust
// aux-build:lint-plugin-test.rs
|
|
// ignore-stage1
|
|
// compile-flags: -D test-lint
|
|
|
|
#![feature(plugin)]
|
|
#![plugin(lint_plugin_test)]
|
|
//~^ WARN use of deprecated attribute `plugin`
|
|
|
|
fn lintme() { } //~ ERROR item is named 'lintme'
|
|
|
|
pub fn main() {
|
|
lintme();
|
|
}
|