2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 08:02:01 -05:00
|
|
|
#![allow(unconditional_recursion)]
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-04-18 00:12:20 -05:00
|
|
|
trait Foo {
|
2013-06-19 12:55:30 -05:00
|
|
|
}
|
|
|
|
|
2019-05-28 13:47:21 -05:00
|
|
|
fn b(_x: Box<dyn Foo+Send>) {
|
2013-06-19 12:55:30 -05:00
|
|
|
}
|
|
|
|
|
2019-05-28 13:47:21 -05:00
|
|
|
fn c(x: Box<dyn Foo+Sync+Send>) {
|
2014-06-20 12:49:54 -05:00
|
|
|
e(x);
|
2013-06-19 12:55:30 -05:00
|
|
|
}
|
|
|
|
|
2019-05-28 13:47:21 -05:00
|
|
|
fn d(x: Box<dyn Foo+Send>) {
|
2014-06-20 12:49:54 -05:00
|
|
|
e(x);
|
2013-06-19 12:55:30 -05:00
|
|
|
}
|
|
|
|
|
2019-05-28 13:47:21 -05:00
|
|
|
fn e(x: Box<dyn Foo>) {
|
2014-06-20 12:49:54 -05:00
|
|
|
e(x);
|
2013-06-20 17:23:25 -05:00
|
|
|
}
|
|
|
|
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main() { }
|