2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-10-27 23:02:23 +02:00
|
|
|
// check that we handle recursive arrays correctly in `type_of`
|
|
|
|
|
|
|
|
struct Loopy {
|
|
|
|
ptr: *mut [Loopy; 1]
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _t = Loopy { ptr: 0 as *mut _ };
|
|
|
|
}
|