Deny bare trait objects in src/libstd.
This commit is contained in:
parent
77117e3836
commit
560d8079ec
20 changed files with 99 additions and 98 deletions
|
|
@ -28,7 +28,7 @@ pub struct Thread {
|
|||
}
|
||||
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue