]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-67166.rs
Allow combining -Cprofile-generate and -Cpanic=unwind when targeting
[rust.git] / src / test / ui / impl-trait / issue-67166.rs
1 // Regression test for #67166
2
3 #![feature(impl_trait_in_bindings)]
4 #![allow(incomplete_features)]
5
6 pub fn run() {
7     let _foo: Box<impl Copy + '_> = Box::new(());
8     //~^ ERROR: missing lifetime specifier
9 }
10
11 fn main() {}