mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
10 lines
248 B
Rust
10 lines
248 B
Rust
// aux-build:lint-for-crate.rs
|
|
// ignore-stage1
|
|
// compile-flags: -D crate-not-okay
|
|
|
|
#![feature(plugin)] //~ ERROR crate is not marked with #![crate_okay]
|
|
#![plugin(lint_for_crate)]
|
|
//~^ WARN use of deprecated attribute `plugin`
|
|
|
|
pub fn main() { }
|