about summary refs log tree commit diff
path: root/tests/ui/traits/wf-object/reverse-order.rs
blob: 99c727cc332b2d660e6b34203175e2dfa0ec49b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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() {}