summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-87181/tuple-field.stderr
blob: 4d22ada0247e98f71e76c9d0813926bc12ada199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0609]: no field `0` on type `fn(char, u16) -> Foo {Foo}`
  --> $DIR/tuple-field.rs:12:15
   |
LL |     thing.bar.0;
   |     --------- ^
   |     |
   |     this is the constructor of a struct
   |
help: call the constructor
   |
LL |     (thing.bar)(_, _).0;
   |     +         +++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0609`.