diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-01-19 17:22:09 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-19 17:22:09 +0530 |
| commit | d276e6942ea1af5c1ad79743e7f0ee797010023f (patch) | |
| tree | 7c54dabdc1a8a57a5da2d78f5c87b21971428cbf /src/test/ui/const-generics/array-size-in-generic-struct-param.rs | |
| parent | a29ba0010765cb63de71a92df8c701e8e87878fc (diff) | |
| parent | d7a18f89864a4360230e3cbbdcbf22d9864a86e0 (diff) | |
| download | rust-d276e6942ea1af5c1ad79743e7f0ee797010023f.tar.gz rust-d276e6942ea1af5c1ad79743e7f0ee797010023f.zip | |
Rollup merge of #68348 - xfix:patch-14, r=nagisa
Make iter::Empty<T> Send and Sync for any T Continuing from #57682 It's quite funny, when I initially submitted this pull request, I said "Likely nobody will be using that property of `iter::empty`", but then a year later I got a compilation error because it wasn't `Send` and `Sync`. Unfortunately, `PhantomData<fn() -> T>` still errors out. Oh well. I proposed ` struct PhantomFnWorkaround<T>(fn() -> T);`, but dtolnay did not like it, so using explicit implementations.
Diffstat (limited to 'src/test/ui/const-generics/array-size-in-generic-struct-param.rs')
0 files changed, 0 insertions, 0 deletions
