diff options
Diffstat (limited to 'src/test/ui/issues/issue-19001.rs')
-rw-r--r-- | src/test/ui/issues/issue-19001.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-19001.rs b/src/test/ui/issues/issue-19001.rs new file mode 100644 index 000000000..76c380c2f --- /dev/null +++ b/src/test/ui/issues/issue-19001.rs @@ -0,0 +1,11 @@ +// 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() }; +} |