blob: 3b62fdece403b922c15a37a532c20997e35f24e5 [file] [log] [blame]
#![crate_type = "lib"]
pub fn foo(callback: fn() -> dyn ToString) {
let mut x: Option<Box<dyn Fn() -> dyn ToString>> = None;
x = Some(Box::new(callback));
//~^ ERROR: the size for values of type `dyn ToString` cannot be known at compilation time
}