Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/issues/issue-19001.rs

12 lines
207 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling with clean stderr again. Most were added mechanically.
2018-09-25 23:51:35 +02:00
#![allow(dead_code)]
type_of: use `sizing_type_of` to check the size of arrays when evaluating a recursive type, the type_of of the interior could be still in progress, so we can't use that. Fixes #19001
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() {
Make use of `ptr::null(_mut)` instead of casting zero
2019-06-17 10:52:37 +00:00
let _t = Loopy { ptr: core::ptr::null_mut() };
type_of: use `sizing_type_of` to check the size of arrays when evaluating a recursive type, the type_of of the interior could be still in progress, so we can't use that. Fixes #19001
2015-10-27 23:02:23 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5473ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API