diff options
Diffstat (limited to 'src/test/compile-fail/trait-bounds-sugar.rs')
| -rw-r--r-- | src/test/compile-fail/trait-bounds-sugar.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/compile-fail/trait-bounds-sugar.rs b/src/test/compile-fail/trait-bounds-sugar.rs index 32c23a3efdd..9447030a7f4 100644 --- a/src/test/compile-fail/trait-bounds-sugar.rs +++ b/src/test/compile-fail/trait-bounds-sugar.rs @@ -10,15 +10,16 @@ // Tests for "default" bounds inferred for traits with no bounds list. + trait Foo {} -fn a(_x: ~Foo:Send) { +fn a(_x: Box<Foo:Send>) { } fn b(_x: &'static Foo) { // should be same as &'static Foo:'static } -fn c(x: ~Foo:Share) { +fn c(x: Box<Foo:Share>) { a(x); //~ ERROR expected bounds `Send` } |
