rust/tests/ui/traits/bound/basic.rs

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

26 lines
294 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
#![allow(unconditional_recursion)]
// pretty-expanded FIXME #23616
2015-04-18 00:12:20 -05:00
trait Foo {
}
2019-05-28 13:47:21 -05:00
fn b(_x: Box<dyn Foo+Send>) {
}
2019-05-28 13:47:21 -05:00
fn c(x: Box<dyn Foo+Sync+Send>) {
e(x);
}
2019-05-28 13:47:21 -05:00
fn d(x: Box<dyn Foo+Send>) {
e(x);
}
2019-05-28 13:47:21 -05:00
fn e(x: Box<dyn Foo>) {
e(x);
}
pub fn main() { }