mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
Test configuration file typing errors
This commit is contained in:
parent
019e310861
commit
7b92fe0387
2 changed files with 7 additions and 0 deletions
6
tests/compile-fail/conf_bad_type.rs
Normal file
6
tests/compile-fail/conf_bad_type.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
// error-pattern: error reading Clippy's configuration file: `blacklisted-names` is expected to be a `Vec < String >` but is a `integer`
|
||||
|
||||
#![feature(plugin)]
|
||||
#![plugin(clippy(conf_file="./tests/compile-fail/conf_bad_type.toml"))]
|
||||
|
||||
fn main() {}
|
1
tests/compile-fail/conf_bad_type.toml
Normal file
1
tests/compile-fail/conf_bad_type.toml
Normal file
|
@ -0,0 +1 @@
|
|||
blacklisted-names = 42
|
Loading…
Reference in a new issue