]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/double_neg.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / double_neg.rs
CommitLineData
f20569fa
XL
1#[warn(clippy::double_neg)]
2fn main() {
3 let x = 1;
4 -x;
5 -(-x);
6 --x;
7}