Skip to content

Commit

Permalink
Update src/test/ui/lint/issue-71290-unused-paren-binop.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
  • Loading branch information
mibac138 and lcnr committed May 5, 2020
1 parent 3471bc8 commit 717a7a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/ui/lint/issue-71290-unused-paren-binop.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// check-pass
// Make sure unused parens lint doesn't emit a false positive.
// See https://github.com/rust-lang/rust/issues/71290 for details.
#![deny(unused_parens)]

fn x() -> u8 {
({ 0 }) + 1
Expand Down

0 comments on commit 717a7a8

Please sign in to comment.