Update src/test/ui/lint/issue-71290-unused-paren-binop.rs

Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
This commit is contained in:
Michael 2020-05-05 16:58:13 +02:00 committed by GitHub
parent 3471bc8306
commit 717a7a8486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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