Register new snapshots
This commit is contained in:
parent
6d8342f5e9
commit
89b0e6e12b
94 changed files with 321 additions and 841 deletions
|
|
@ -2518,8 +2518,8 @@ valid types:
|
|||
trait Foo {}
|
||||
trait Bar<T> {}
|
||||
|
||||
fn sendable_foo(f: Box<Foo:Send>) { /* ... */ }
|
||||
fn shareable_bar<T: Share>(b: &Bar<T>: Share) { /* ... */ }
|
||||
fn sendable_foo(f: Box<Foo + Send>) { /* ... */ }
|
||||
fn shareable_bar<T: Share>(b: &Bar<T> + Share) { /* ... */ }
|
||||
~~~
|
||||
|
||||
When no colon is specified (such as the type `~Foo`), it is inferred that the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue