diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-07-10 20:35:36 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-07-10 20:35:36 +0200 |
| commit | 560d8079ec26f2a45ecb80e95d24917025e02104 (patch) | |
| tree | 6e288b50c28bcd6386874e3f4af71ff10431d190 /src/libstd/sys/windows/thread.rs | |
| parent | 77117e383676176116851d7d3ec04b5e0cf0c456 (diff) | |
| download | rust-560d8079ec26f2a45ecb80e95d24917025e02104.tar.gz rust-560d8079ec26f2a45ecb80e95d24917025e02104.zip | |
Deny bare trait objects in `src/libstd`.
Diffstat (limited to 'src/libstd/sys/windows/thread.rs')
| -rw-r--r-- | src/libstd/sys/windows/thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/thread.rs b/src/libstd/sys/windows/thread.rs index b6f63303dc2..44ec872b244 100644 --- a/src/libstd/sys/windows/thread.rs +++ b/src/libstd/sys/windows/thread.rs @@ -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; |
