Skip to content

Commit cb6db1c

Browse files
committed
updated stderr
1 parent f724215 commit cb6db1c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/ui/parser/ufcs-return-unused-parens.fixed

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//! Check that UFCS syntax works correctly in return statements without requiring workaround parentheses.
1+
//! Check that UFCS syntax works correctly in return statements
2+
//! without requiring workaround parentheses.
23
//!
34
//! Regression test for <https://github.com/rust-lang/rust/issues/37765>.
45

tests/ui/parser/ufcs-return-unused-parens.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
warning: unnecessary parentheses around `return` value
2-
--> $DIR/ufcs-return-unused-parens.rs:12:12
2+
--> $DIR/ufcs-return-unused-parens.rs:13:12
33
|
44
LL | return (<T as ToString>::to_string(&arg));
55
| ^ ^
66
|
77
note: the lint level is defined here
8-
--> $DIR/ufcs-return-unused-parens.rs:9:9
8+
--> $DIR/ufcs-return-unused-parens.rs:10:9
99
|
1010
LL | #![warn(unused_parens)]
1111
| ^^^^^^^^^^^^^

0 commit comments

Comments
 (0)