Files
rust/src/test/ui/traits/wf-trait-object-reverse-order.rs

16 lines
270 B
Rust
Raw Normal View History

2019-03-30 22:06:09 +00:00
// run-pass
// Ensure that `dyn $($AutoTrait) + ObjSafe` is well-formed.
use std::marker::Unpin;
// Some arbitray object-safe trait:
trait Obj {}
type _0 = Unpin;
type _1 = Send + Obj;
type _2 = Send + Unpin + Obj;
type _3 = Send + Unpin + Sync + Obj;
fn main() {}