mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
14 lines
267 B
Rust
14 lines
267 B
Rust
//@ check-pass
|
|
|
|
// Ensure that `dyn $($AutoTrait)+ ObjSafe` is well-formed.
|
|
|
|
// Some arbitrary dyn-compatible trait:
|
|
trait Obj {}
|
|
|
|
type _0 = dyn Unpin;
|
|
type _1 = dyn Send + Obj;
|
|
type _2 = dyn Send + Unpin + Obj;
|
|
type _3 = dyn Send + Unpin + Sync + Obj;
|
|
|
|
fn main() {}
|