rust/tests/ui/traits/wf-object/reverse-order.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
286 B
Rust
Raw Normal View History

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