about summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-size-in-generic-struct-param.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-01-19 17:22:09 +0530
committerGitHub <noreply@github.com>2020-01-19 17:22:09 +0530
commitd276e6942ea1af5c1ad79743e7f0ee797010023f (patch)
tree7c54dabdc1a8a57a5da2d78f5c87b21971428cbf /src/test/ui/const-generics/array-size-in-generic-struct-param.rs
parenta29ba0010765cb63de71a92df8c701e8e87878fc (diff)
parentd7a18f89864a4360230e3cbbdcbf22d9864a86e0 (diff)
downloadrust-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