blob: e21fbc249b548000fe0df48220cf85ebd8898ca8 [file] [edit]
//! Regression test for <https://github.com/rust-lang/rust/issues/38875>.
//! This used to check `constant evaluation error` span doesn't point
//! on nothing when const is defined in another crate.
//@ aux-build:cross-crate-array-len.rs
//@ check-pass
extern crate cross_crate_array_len;
fn main() {
let test_x = [0; cross_crate_array_len::FOO];
}