Add missing dyn for cloudabi, redox, unix and wasm

This commit is contained in:
ljedrz
2018-07-10 20:52:29 +02:00
parent 560d8079ec
commit b29a6fbabc
5 changed files with 7 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ unsafe fn pthread_attr_setstacksize(_attr: *mut libc::pthread_attr_t,
}
impl Thread {
pub unsafe fn new<'a>(stack: usize, p: Box<FnBox() + 'a>)
pub unsafe fn new<'a>(stack: usize, p: Box<dyn FnBox() + 'a>)
-> io::Result<Thread> {
let p = box p;
let mut native: libc::pthread_t = mem::zeroed();