This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
rust-clippy
Watch
2
Star
0
Fork
You've already forked rust-clippy
0
mirror of
https://github.com/rust-lang/rust-clippy
synced
2024-12-18 09:03:18 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
013b1f5923
rust-clippy
/
tests
/
ui
/
double_neg.rs
11 lines
117 B
Rust
Raw
Normal View
History
Unescape
Escape
new lint: double_neg
2016-06-29 23:00:25 +00:00
#![
feature(plugin)
]
#![
plugin(clippy)
]
Make most tests an `example` so we can run them one by one
2017-05-17 12:19:44 +00:00
#[
warn(double_neg)
]
new lint: double_neg
2016-06-29 23:00:25 +00:00
fn
main
(
)
{
let
x
=
1
;
-
x
;
-
(
-
x
)
;
remove all //~ from tests
2017-02-08 13:58:07 +00:00
-
-
x
;
new lint: double_neg
2016-06-29 23:00:25 +00:00
}
Reference in a new issue
Copy permalink