mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
128 lines
2.8 KiB
Plaintext
128 lines
2.8 KiB
Plaintext
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:13:19
|
|
|
|
|
LL | let _ = 1 as ((i32)) < 2;
|
|
| ^ ^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unused-parens-issue-106413.rs:2:9
|
|
|
|
|
LL | #![warn(unused_parens)]
|
|
| ^^^^^^^^^^^^^
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = 1 as ((i32)) < 2;
|
|
LL + let _ = 1 as (i32) < 2;
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:14:18
|
|
|
|
|
LL | let _ = 1 as (i32);
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = 1 as (i32);
|
|
LL + let _ = 1 as i32;
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:15:18
|
|
|
|
|
LL | let _ = 1 as (i32) > 2;
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = 1 as (i32) > 2;
|
|
LL + let _ = 1 as i32 > 2;
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:16:21
|
|
|
|
|
LL | let _ = id(1 as (i32))
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = id(1 as (i32))
|
|
LL + let _ = id(1 as i32)
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:18:21
|
|
|
|
|
LL | let _ = id(1 as (i32)) < 2;
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = id(1 as (i32)) < 2;
|
|
LL + let _ = id(1 as i32) < 2;
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:26:19
|
|
|
|
|
LL | let _ = 1 as ((i32)) << 2;
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = 1 as ((i32)) << 2;
|
|
LL + let _ = 1 as (i32) << 2;
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:27:18
|
|
|
|
|
LL | let _ = 1 as (i32);
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = 1 as (i32);
|
|
LL + let _ = 1 as i32;
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:28:18
|
|
|
|
|
LL | let _ = 1 as (i32) >> 2;
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = 1 as (i32) >> 2;
|
|
LL + let _ = 1 as i32 >> 2;
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:29:21
|
|
|
|
|
LL | let _ = id(1 as (i32))
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = id(1 as (i32))
|
|
LL + let _ = id(1 as i32)
|
|
|
|
|
|
|
warning: unnecessary parentheses around type
|
|
--> $DIR/unused-parens-issue-106413.rs:31:21
|
|
|
|
|
LL | let _ = id(1 as (i32)) << 2;
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - let _ = id(1 as (i32)) << 2;
|
|
LL + let _ = id(1 as i32) << 2;
|
|
|
|
|
|
|
warning: 10 warnings emitted
|
|
|