#![feature(fn_traits)] #![feature(unboxed_closures)] #![feature(tuple_trait)] fn foo, T:std::marker::Tuple>(f: Option, t: T) { let y = (f.unwrap()).call(t); } fn main() { foo:: str, _>(None, ()); //~^ ERROR the size for values of type `str` cannot be known at compilation time foo:: fn(&'a ()) -> (dyn std::fmt::Display + 'a), _>(None, (&(),)); //~^ ERROR the size for values of type `(dyn std::fmt::Display + 'a)` cannot be known at compilation time }