mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
15 lines
273 B
Rust
15 lines
273 B
Rust
|
// known-bug: #117647
|
||
|
|
||
|
#![feature(lifetime_capture_rules_2024)]
|
||
|
#![feature(rustc_attrs)]
|
||
|
#![allow(internal_features)]
|
||
|
#![rustc_variance_of_opaques]
|
||
|
|
||
|
use std::ops::Deref;
|
||
|
|
||
|
fn foo(x: Vec<i32>) -> Box<dyn for<'a> Deref<Target = impl ?Sized>> {
|
||
|
Box::new(x)
|
||
|
}
|
||
|
|
||
|
fn main() {}
|