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