rust/tests/ui/traits/wf-object/reverse-order.rs
surechen 40ae34194c remove redundant imports
detects redundant imports that can be eliminated.

for #117772 :

In order to facilitate review and modification, split the checking code and
removing redundant imports code into two PR.
2023-12-10 10:56:22 +08:00

14 lines
261 B
Rust

// run-pass
// Ensure that `dyn $($AutoTrait)+ ObjSafe` is well-formed.
// 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() {}