error[E0277]: expected a `Fn<_>` closure, found `fn() -> str` --> $DIR/builtin-fn-must-return-sized.rs:15:27 | LL | foo:: 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, T: Tuple>(f: Option, t: T) { | ^^^^^ required by this bound in `foo` error: aborting due to previous error For more information about this error, try `rustc --explain E0277`.