mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 09:36:06 +00:00
40ae34194c
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.
14 lines
261 B
Rust
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() {}
|