summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/issue-111879-1.stderr
blob: 689b45e09aaac8392df7189ddb7566e65aae790b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0580]: `main` function has wrong type
  --> $DIR/issue-111879-1.rs:12:1
   |
LL | fn main(_: for<'a> fn(Foo<fn(&'a ())>::Assoc)) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of function parameters
   |
   = note: expected fn pointer `fn()`
              found fn pointer `fn(for<'a> fn(Foo<fn(&'a ())>::Assoc))`

error: aborting due to previous error

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