You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn main() {
let (port, chan) = pipes::stream::<&static/str>(); // instantiating a type parameter with an incompatible type (needs `owned`, got `const copy owned`, missing `durable`)
do task::spawn {
io::println(port.recv()); // instantiating a type parameter with an incompatible type (needs `owned`, got `const copy owned`, missing `durable`)
}
chan.send("hello, world"); // instantiating a type parameter with an incompatible type (needs `owned`, got `const copy owned`, missing `durable`)
}
<@nmatsakis> bstrie: oh, hmm, interesting. I thought that'd work.
<@nmatsakis> bstrie: well, it's like "sending" an int
<@nmatsakis> that is to say, you copy the pointer...
<@nmatsakis> for values that don't need to be freed, you should be able
to send them freely
<@nmatsakis> I think at some point that did work, must have changed.
<@nmatsakis> (let me be more specific: immutable values that do not need
to be freed)
<@nmatsakis> (but, at least currently, we shouldn't have any &static data
is not immutable)
The text was updated successfully, but these errors were encountered:
* Fixed Comment removed between type name and = issue
* Fixed where clause issue and pass the full span
* has_where condition inline
* Fixed indentation error on where clause
* Removed tmp file
The text was updated successfully, but these errors were encountered: