mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
16 lines
286 B
Rust
16 lines
286 B
Rust
// run-pass
|
|
|
|
// Ensure that `dyn $($AutoTrait)+ ObjSafe` is well-formed.
|
|
|
|
use std::marker::Unpin;
|
|
|
|
// Some arbitrary object-safe 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() {}
|