Skip to content

Commit 7b92fe0

Browse files
committed
Test configuration file typing errors
1 parent 019e310 commit 7b92fe0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/compile-fail/conf_bad_type.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// error-pattern: error reading Clippy's configuration file: `blacklisted-names` is expected to be a `Vec < String >` but is a `integer`
2+
3+
#![feature(plugin)]
4+
#![plugin(clippy(conf_file="./tests/compile-fail/conf_bad_type.toml"))]
5+
6+
fn main() {}

tests/compile-fail/conf_bad_type.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blacklisted-names = 42

0 commit comments

Comments
 (0)