about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-31 15:59:46 +0200
committerGitHub <noreply@github.com>2020-03-31 15:59:46 +0200
commit3ef70fe156be1f8236c23a49c0db841207895ef9 (patch)
tree0f9e5c446397b06ad51e574ed5b2fa8ae373544c /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent38cd294ed5a90036d570b663e7bcdf8dd0fd775f (diff)
parenta3df1db8ee40f8c5dc520a5d0a37adc5a70a15be (diff)
downloadrust-3ef70fe156be1f8236c23a49c0db841207895ef9.tar.gz
rust-3ef70fe156be1f8236c23a49c0db841207895ef9.zip
Rollup merge of #70562 - lcnr:const-arr_len, r=Centril
infer array len from pattern

closes #70529

This still errors in the following case

```rust
#![feature(const_generics)]
fn arr<const N: usize>() -> [u8; N] {
    todo!()
}

fn main() {
    match arr() {
        [5, ..] => (),
        //~^ ERROR cannot pattern-match on an array without a fixed length
        [_, _] => (),
    }
}
```
Considering that this should be rare and is harder to implement I would merge this PR without *fixing* the above.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions