rust/tests/ui/issues/issue-31267.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
188 B
Rust
Raw Normal View History

// run-pass
2016-01-31 19:31:06 +00:00
// 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]);
}