mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
15 lines
189 B
Rust
15 lines
189 B
Rust
//@ run-pass
|
|
// Regression test for issue #31267
|
|
|
|
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
const FOO: [i32; 3] = [0; 3];
|
|
}
|
|
|
|
pub fn main() {
|
|
let foo = Foo::FOO;
|
|
assert_eq!(foo, [0i32, 0, 0]);
|
|
}
|