mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
26 lines
294 B
Rust
26 lines
294 B
Rust
// run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(unconditional_recursion)]
|
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
trait Foo {
|
|
}
|
|
|
|
fn b(_x: Box<dyn Foo+Send>) {
|
|
}
|
|
|
|
fn c(x: Box<dyn Foo+Sync+Send>) {
|
|
e(x);
|
|
}
|
|
|
|
fn d(x: Box<dyn Foo+Send>) {
|
|
e(x);
|
|
}
|
|
|
|
fn e(x: Box<dyn Foo>) {
|
|
e(x);
|
|
}
|
|
|
|
pub fn main() { }
|