summary refs log tree commit diff
path: root/src/test/ui/impl-trait/issue-67166.rs
blob: de7433a9bfc4cdbb63961f0e17c41f0e01e1f53c (plain)
1
2
3
4
5
6
7
8
9
10
11
// Regression test for #67166

#![feature(impl_trait_in_bindings)]
#![allow(incomplete_features)]

pub fn run() {
    let _foo: Box<impl Copy + '_> = Box::new(()); // FIXME: The error doesn't much make sense.
    //~^ ERROR: opaque type expands to a recursive type
}

fn main() {}