summary refs log tree commit diff
path: root/src/test/ui/path-lookahead.stderr
blob: 89df5e894aa343d3addc064040a95d59ce86f1f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
warning: unnecessary parentheses around `return` value
  --> $DIR/path-lookahead.rs:18:10
   |
LL |   return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
   |
note: lint level defined here
  --> $DIR/path-lookahead.rs:13:9
   |
LL | #![warn(unused)]
   |         ^^^^^^
   = note: #[warn(unused_parens)] implied by #[warn(unused)]

warning: function is never used: `with_parens`
  --> $DIR/path-lookahead.rs:17:1
   |
LL | fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens`
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: lint level defined here
  --> $DIR/path-lookahead.rs:13:9
   |
LL | #![warn(unused)]
   |         ^^^^^^
   = note: #[warn(dead_code)] implied by #[warn(unused)]

warning: function is never used: `no_parens`
  --> $DIR/path-lookahead.rs:21:1
   |
LL | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^