about summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/parenthesized.stderr
blob: c97fa9972ef01306eaa4206b628da9772e2c5127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: precise capturing lists may not be parenthesized
  --> $DIR/parenthesized.rs:4:24
   |
LL | fn f() -> impl Sized + (use<>) {}
   |                        ^^^^^^^
   |
help: remove the parentheses
   |
LL - fn f() -> impl Sized + (use<>) {}
LL + fn f() -> impl Sized + use<> {}
   |

error: aborting due to 1 previous error