Skip to content

Nightly/beta regression? Sized + UnwindSafe #40011

Closed
@dpc

Description

@dpc
use std::panic::UnwindSafe;

fn is_unwind_safe<T: UnwindSafe>() {}

trait Foo: UnwindSafe {}

fn main() {
    is_unwind_safe::<Box<[u8]>>();
    is_unwind_safe::<Box<Foo>>();
}

https://is.gd/xWwNn6

Compiles on stable, but fails on beta and nightly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions