about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-11-25 17:33:16 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-11-25 22:34:59 +0100
commit057e6d3a35a54e8b88c2cef1e6a1b9e590066276 (patch)
tree5e1ab2b55554895154dc7225e430950c90dbfafb /src/test/incremental/thinlto
parent5bd451b26580de465d59ed5389209ed191b7dbdd (diff)
downloadrust-057e6d3a35a54e8b88c2cef1e6a1b9e590066276.tar.gz
rust-057e6d3a35a54e8b88c2cef1e6a1b9e590066276.zip
Add TryFrom<&[T]> for [T; $N] where T: Copy
`TryFrom<&[T]> for &[T; $N]` (note *reference* to an array) already exists,
but not needing to dereference makes type inference easier
for example when using `u32::from_be_bytes`.

Also add doc examples doing just that.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions