We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use std::io::{MemReader, MemWriter}; use std::io::util::copy; fn main() { let mut rain = box MemReader::new(vec![1, 2, 3]) as Box<Reader>; let mut pool = MemWriter::new(); copy(&mut rain, &mut pool); }
Compiles.
use std::io::{MemReader, MemWriter}; use std::io::util::copy; fn main() { let mut rain = box MemReader::new(vec![1, 2, 3]) as Box<Reader + Send>; let mut pool = MemWriter::new(); copy(&mut rain, &mut pool); }
Fails with:
<anon>:7:5: 7:9 error: failed to find an implementation of trait std::io::Reader for Box<std::io::Reader:Send> <anon>:7 copy(&mut rain, &mut pool); ^~~~ playpen: application terminated with error code 101
This seems like it should work and is very non-ergonomic if it doesn't work.
The text was updated successfully, but these errors were encountered:
cc @nikomatsakis, @pcwalton, I think this is fallout of more strict bounds matching recently.
Sorry, something went wrong.
Closing as a dupe of #18524.
No branches or pull requests
Compiles.
Fails with:
This seems like it should work and is very non-ergonomic if it doesn't work.
The text was updated successfully, but these errors were encountered: