-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
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
ICE source trait is private #24877
Comments
If I alter the example as - writeln!(&mut out, "Hello World!");
+ let _ = writeln!(&mut out, "Hello World!"); it avoids the ICE and correctly reports the span of the error:
|
Besides the ICE, this error is confusing. I assume the problem is that |
+1 I was bitten few minutes ago by the same error. I agree with @kballard |
Would this be a good attempt on a reproducible example? use std::io;
struct Foo;
impl std::io::Write for Foo {
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
Ok(0)
}
fn flush(&mut self) -> io::Result<()> {
Ok(())
}
}
fn example() -> Box<Foo> {
Box::new(Foo)
}
fn main() {
let mut out = example();
writeln!(&mut out, "Hello World!");
} Here is the error message:
Adding a |
E-needtest and duplicate of #27669 |
With this code: retep998/term@2b94c82
I get an ICE
Backtrace by @kballard using rustc 1.1.0-nightly (5fb0259 2015-04-26) (built 2015-04-26)
The text was updated successfully, but these errors were encountered: