diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-06-11 12:14:38 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-13 13:53:34 -0700 |
| commit | 9b9ef442337ee3b9a29449a0792ae2eeb0480d0c (patch) | |
| tree | 0be19c2428e4bb08c91346b0c74366e2e9b0a510 /src/test/auxiliary | |
| parent | 03ec8e5cc91b3b6b6ab98ef70aa63a0965c5f6c1 (diff) | |
| download | rust-9b9ef442337ee3b9a29449a0792ae2eeb0480d0c.tar.gz rust-9b9ef442337ee3b9a29449a0792ae2eeb0480d0c.zip | |
libsyntax: Allow `+` to separate trait bounds from objects.
RFC #27. After a snapshot, the old syntax will be removed. This can break some code that looked like `foo as &Trait:Send`. Now you will need to write `foo as (&Trait+Send)`. Closes #12778. [breaking-change]
Diffstat (limited to 'src/test/auxiliary')
| -rw-r--r-- | src/test/auxiliary/plugin_crate_outlive_expansion_phase.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/auxiliary/plugin_crate_outlive_expansion_phase.rs b/src/test/auxiliary/plugin_crate_outlive_expansion_phase.rs index 213fdd6b74a..1592ffb6c67 100644 --- a/src/test/auxiliary/plugin_crate_outlive_expansion_phase.rs +++ b/src/test/auxiliary/plugin_crate_outlive_expansion_phase.rs @@ -27,7 +27,7 @@ impl Drop for Foo { #[plugin_registrar] pub fn registrar(_: &mut Registry) { - local_data_key!(foo: Box<Any:Send>); - foo.replace(Some(box Foo { foo: 10 } as Box<Any:Send>)); + local_data_key!(foo: Box<Any+Send>); + foo.replace(Some(box Foo { foo: 10 } as Box<Any+Send>)); } |
