From 2bab7958861d87d495d72f41aff7efa6fc8183a4 Mon Sep 17 00:00:00 2001 From: cgm616 Date: Fri, 16 Oct 2020 16:36:58 -0400 Subject: [PATCH] Fix test --- tests/ui/xor_used_as_pow.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/xor_used_as_pow.stderr b/tests/ui/xor_used_as_pow.stderr index dc3d6351908f..295fe5bc2acc 100644 --- a/tests/ui/xor_used_as_pow.stderr +++ b/tests/ui/xor_used_as_pow.stderr @@ -4,7 +4,7 @@ error: it appears you are trying to get the maximum value of an integer, but `^` LL | println!("{}", 2 ^ 16); | ^^^^^^ help: try: `std::u16::MAX` | - = note: `-D clippy::xor-used-as-pow` implied by `-D warnings` + = note: `#[deny(clippy::xor_used_as_pow)]` on by default error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator --> $DIR/xor_used_as_pow.rs:13:20