blob: 0892153c0cf86e426f499f0068741f21a7411d34 [file] [log] [blame]
// Tests for "default" bounds inferred for traits with no bounds list.
trait Foo {}
fn a(_x: Box<Foo+Send>) {
}
fn b(_x: &'static (Foo+'static)) {
}
fn c(x: Box<Foo+Sync>) {
a(x); //~ ERROR mismatched types
}
fn d(x: &'static (Foo+Sync)) {
b(x);
}
fn main() {}