Files
rust/tests/ui/recursion/recursive-struct-with-raw-pointer-field.rs
T
ujjwalVishwakarma2006 c4f6148fd9 Add issue links
2026-04-19 23:51:38 +05:30

13 lines
280 B
Rust

//! Regression test for <https://github.com/rust-lang/rust/issues/19001>
//@ run-pass
#![allow(dead_code)]
// check that we handle recursive arrays correctly in `type_of`
struct Loopy {
ptr: *mut [Loopy; 1]
}
fn main() {
let _t = Loopy { ptr: core::ptr::null_mut() };
}