14427
14427
The following code causes an internal compiler error: ``` fn foo() { let _x: Bar = Bar{ arr: &[] }; } struct Bar { arr: &[T], } fn test_foo() {...
The compiler correctly warns that the second fail is unreachable, then an ICE occurs ``` fn main() { fail ~"One"; fail ~"Two"; } ```
See the following code for an example: ``` struct Goodbye { msg: ~str } impl Goodbye: Drop { fn finalize(&self) { io::println(self.msg); } } pure fn test() -> Goodbye {...
## Updated Test Case (warning: may not be faithful to the original problem) ``` rust use core::io::ReaderUtil; use core::io::Reader; fn foo(r:@Reader) -> ~str { r.read_line() } fn baz(r:R) -> ~str...
This code fails to compile ``` trait Foo { fn bar(&self); } impl int: Foo { fn bar(&self) { } } fn test(arr: T) { } fn main() { let...
The following code fails with "task failed at 'Assertion old_task.is_null() failed', /home/simon/Code/Rust/rust/src/libcore/pipes.rs:161" https://gist.github.com/4644469
I would expect the following code: https://gist.github.com/4688550 to print (Left | Right): Some(0|1|2) in an infinite loop. It only prints Some(0) and Some(2). Removing the right channels causes Some(0), Some(1)...
The following wat program works fine in wat2wasm without function references enabled: ``` (module (func $example (export "example") (result funcref) ref.func $example)) ``` However, enabling the "function references" feature causes...