mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
25 lines
263 B
Rust
25 lines
263 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(unconditional_recursion)]
|
|
|
|
|
|
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() { }
|