diff options
| author | Barosl LEE <github@barosl.com> | 2015-01-21 02:16:52 +0900 |
|---|---|---|
| committer | Barosl LEE <github@barosl.com> | 2015-01-21 02:16:52 +0900 |
| commit | 1d206e28723689e1692f02fa3bde11c4ee7eb5aa (patch) | |
| tree | 43e4f83b6766553beda104fd94974a152e29c446 /src/test | |
| parent | 5b57aa757b70bae7d7014a677ff80aaf5d89fdb8 (diff) | |
| parent | a09df2cb9d1e6025a9565f3ef7983cb743b421a3 (diff) | |
| download | rust-1d206e28723689e1692f02fa3bde11c4ee7eb5aa.tar.gz rust-1d206e28723689e1692f02fa3bde11c4ee7eb5aa.zip | |
Rollup merge of #21404 - japaric:hash, r=alexcrichton
closes #21402 cc #15294 r? @alexcrichton or @aturon cc @ExpHP (btw, this only covers arrays with arity up to 32)
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/issue-21402.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-21402.rs b/src/test/run-pass/issue-21402.rs new file mode 100644 index 00000000000..6be7cea2928 --- /dev/null +++ b/src/test/run-pass/issue-21402.rs @@ -0,0 +1,18 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[derive(Hash)] +struct Foo { + a: Vec<bool>, + b: (bool, bool), + c: [bool; 2], +} + +fn main() {} |
