rust/tests/ui/consts/non-scalar-cast.rs

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

10 lines
142 B
Rust
Raw Normal View History

//@ run-pass
2018-01-16 09:15:41 +00:00
// https://github.com/rust-lang/rust/issues/37448
fn main() {
struct A;
const FOO: &A = &(A as A);
let _x = FOO;
}