Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/91827-1.rs: fixed with no errors #1060

Merged
merged 1 commit into from
Dec 20, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#91827

#![feature(extern_types)]

extern "C" {
    type Content;
}

pub struct List {
    len: usize,
    _opaque: Content,
}

pub const Z: usize = {
    let a = [0usize; 4];
    unsafe { &*(&a as *const _ as *const List) }.len
};

pub fn main() {}
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JohnTitor JohnTitor merged commit 047862c into master Dec 20, 2021
@JohnTitor JohnTitor deleted the autofix/ices/91827-1.rs branch December 20, 2021 08:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants