mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 06:53:05 +00:00
10 lines
225 B
Rust
10 lines
225 B
Rust
//@ check-fail
|
|
|
|
trait Trait<'a> {}
|
|
|
|
fn add_auto<'a>(x: *mut dyn Trait<'a>) -> *mut (dyn Trait<'a> + Send) {
|
|
x as _ //~ error: the trait bound `dyn Trait<'_>: Unsize<dyn Trait<'_> + Send>` is not satisfied
|
|
}
|
|
|
|
fn main() {}
|