Closed
Description
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.