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

ices/92128.rs: fixed with no errors #1085

Merged
merged 1 commit into from
Jan 11, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#92128

#![feature(ptr_metadata)]

use std::alloc::Layout;
use std::ptr::Pointee;

trait RowOp {
    type Config;
}

struct Numbers;

impl RowOp for Numbers {
    type Config = ();
}

struct Func<T: RowOp> { _config: T::Config }

struct Inner<T: Pointee + ?Sized> { _meta: T::Metadata }

pub fn main() {
    // ICE caused by this line
    let _layout = Layout::new::<Inner<Func<Numbers>>>();
}
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@Alexendoo Alexendoo merged commit a104ace into master Jan 11, 2022
@Alexendoo Alexendoo deleted the autofix/ices/92128.rs branch January 11, 2022 17:38
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