2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-03-15 13:30:37 -07:00
|
|
|
//@ aux-build:pub_static_array.rs
|
|
|
|
|
2015-03-19 15:39:03 -07:00
|
|
|
extern crate pub_static_array as array;
|
2015-03-15 13:30:37 -07:00
|
|
|
|
|
|
|
use array::ARRAY;
|
|
|
|
|
|
|
|
static X: &'static u8 = &ARRAY[0];
|
2016-05-03 01:57:35 +03:00
|
|
|
static Y: &'static u8 = &(&ARRAY)[0];
|
|
|
|
static Z: u8 = (&ARRAY)[0];
|
|
|
|
|
2015-03-15 13:30:37 -07:00
|
|
|
pub fn main() {}
|