summaryrefslogtreecommitdiffstats
path: root/src/test/ui/path-lookahead.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/path-lookahead.stderr')
-rw-r--r--src/test/ui/path-lookahead.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/path-lookahead.stderr b/src/test/ui/path-lookahead.stderr
new file mode 100644
index 000000000..2cc786fd9
--- /dev/null
+++ b/src/test/ui/path-lookahead.stderr
@@ -0,0 +1,19 @@
+warning: unnecessary parentheses around `return` value
+ --> $DIR/path-lookahead.rs:10:12
+ |
+LL | return (<T as ToString>::to_string(&arg));
+ | ^ ^
+ |
+note: the lint level is defined here
+ --> $DIR/path-lookahead.rs:5:9
+ |
+LL | #![warn(unused_parens)]
+ | ^^^^^^^^^^^^^
+help: remove these parentheses
+ |
+LL - return (<T as ToString>::to_string(&arg));
+LL + return <T as ToString>::to_string(&arg);
+ |
+
+warning: 1 warning emitted
+