mirror of https://github.com/rust-lang/rust.git
20 lines
610 B
Plaintext
20 lines
610 B
Plaintext
warning: unnecessary braces around block return value
|
|
--> $DIR/unused-braces-attrs-issue-141549.rs:11:5
|
|
|
|
|
LL | { #[expect(ambiguous_wide_pointer_comparisons)] p1.cmp(&p2) }
|
|
| ^^ ^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unused-braces-attrs-issue-141549.rs:5:9
|
|
|
|
|
LL | #![warn(unused_braces)]
|
|
| ^^^^^^^^^^^^^
|
|
help: remove these braces
|
|
|
|
|
LL - { #[expect(ambiguous_wide_pointer_comparisons)] p1.cmp(&p2) }
|
|
LL + #[expect(ambiguous_wide_pointer_comparisons)] p1.cmp(&p2)
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|