about summary refs log tree commit diff
path: root/tests/crashes/136188.rs
blob: a701fc4c0b74fcc61afbe6525be07411660a421e (plain)
1
2
3
4
5
6
7
8
9
//@ known-bug: #136188
//@ compile-flags: --crate-type=lib -Znext-solver
#![feature(type_alias_impl_trait)]

type Opaque = Box<impl Sized>;

fn define() -> Opaque { Box::new(()) }

impl Copy for Opaque {}