summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/builtin-fn-must-return-sized.stderr
blob: f7551739b13286dfa23e7b8e8c4bc74ceec00980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0277]: expected a `Fn<_>` closure, found `fn() -> str`
  --> $DIR/builtin-fn-must-return-sized.rs:15:27
   |
LL |     foo::<fn() -> str, _>(None, ());
   |     --------------------- ^^^^ expected an `Fn<_>` closure, found `fn() -> str`
   |     |
   |     required by a bound introduced by this call
   |
   = help: the trait `Fn<_>` is not implemented for `fn() -> str`
note: required by a bound in `foo`
  --> $DIR/builtin-fn-must-return-sized.rs:10:11
   |
LL | fn foo<F: Fn<T>, T: Tuple>(f: Option<F>, t: T) {
   |           ^^^^^ required by this bound in `foo`

error: aborting due to previous error

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