summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/redundant.normal.stderr
blob: d1bcbaa33ae2bdc26b2e38e70b2a79123ea20f15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
warning: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant
  --> $DIR/redundant.rs:5:19
   |
LL | fn hello<'a>() -> impl Sized + use<'a> {}
   |                   ^^^^^^^^^^^^^-------
   |                                |
   |                                help: remove the `use<...>` syntax
   |
   = note: `#[warn(impl_trait_redundant_captures)]` on by default

warning: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant
  --> $DIR/redundant.rs:10:27
   |
LL |     fn inherent(&self) -> impl Sized + use<'_> {}
   |                           ^^^^^^^^^^^^^-------
   |                                        |
   |                                        help: remove the `use<...>` syntax

warning: 2 warnings emitted