about summary refs log tree commit diff
path: root/tests/ui/lint/unused/unused-parens-trait-obj.edition2018.stderr
blob: aed8cec68e8da37b5628b08a9d7ec0a19e1e9592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error: unnecessary parentheses around type
  --> $DIR/unused-parens-trait-obj.rs:25:51
   |
LL | pub type DynIsAContextualKeywordIn2015B = Box<dyn (::std::ops::Fn())>;
   |                                                   ^                ^
   |
note: the lint level is defined here
  --> $DIR/unused-parens-trait-obj.rs:7:9
   |
LL | #![deny(unused_parens)]
   |         ^^^^^^^^^^^^^
help: remove these parentheses
   |
LL - pub type DynIsAContextualKeywordIn2015B = Box<dyn (::std::ops::Fn())>;
LL + pub type DynIsAContextualKeywordIn2015B = Box<dyn ::std::ops::Fn()>;
   |

error: aborting due to 1 previous error