diff options
Diffstat (limited to 'src/test/compile-fail/trait-bounds-sugar.rs')
| -rw-r--r-- | src/test/compile-fail/trait-bounds-sugar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/trait-bounds-sugar.rs b/src/test/compile-fail/trait-bounds-sugar.rs index d548098ebe1..c3d608b48f3 100644 --- a/src/test/compile-fail/trait-bounds-sugar.rs +++ b/src/test/compile-fail/trait-bounds-sugar.rs @@ -19,11 +19,11 @@ fn a(_x: Box<Foo+Send>) { fn b(_x: &'static Foo) { // should be same as &'static Foo+'static } -fn c(x: Box<Foo+Share>) { +fn c(x: Box<Foo+Sync>) { a(x); //~ ERROR expected bounds `Send` } -fn d(x: &'static Foo+Share) { +fn d(x: &'static Foo+Sync) { b(x); //~ ERROR expected bounds `'static` } |
