summary refs log tree commit diff
path: root/src/test/ui/path-lookahead.stderr
blob: 8fd1b8de68787c71e2ffffc6df8de2a65f714a79 (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
warning: unnecessary parentheses around `return` value
  --> $DIR/path-lookahead.rs:16:10
   |
16 |   return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(unused_parens)] on by default

warning: function is never used: `with_parens`
  --> $DIR/path-lookahead.rs:15:1
   |
15 | / fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens`
16 | |   return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
17 | | }
   | |_^
   |
   = note: #[warn(dead_code)] on by default

warning: function is never used: `no_parens`
  --> $DIR/path-lookahead.rs:19:1
   |
19 | / fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
20 | |   return <T as ToString>::to_string(&arg);
21 | | }
   | |_^