rust/src/test/ui-fulldeps/lint-plugin-forbid-cmdline.rs
2019-03-14 01:00:49 +00:00

14 lines
298 B
Rust

// aux-build:lint-plugin-test.rs
// ignore-stage1
// compile-flags: -F test-lint
#![feature(plugin)]
#![plugin(lint_plugin_test)]
fn lintme() { } //~ ERROR item is named 'lintme'
#[allow(test_lint)] //~ ERROR allow(test_lint) overruled by outer forbid(test_lint)
pub fn main() {
lintme();
}