-
``` rust
use std::ops::BitAnd;
struct A;
impl BitAnd for A
{
pub fn bitand(self, other: A) -> A
{
return self;
}
}
```
```
$rustc --version --verbose
rustc 0.13.0-dev
binary: ru…
-
Got another ICE, this time it only shows itself when compiled with debug info (rustc -g error.rs).
Also of note is that another ICE shows itself if the State wrapper is removed (I can file a separate …
-
# Updated code example
``` rust
struct Foo {
listener: Foo {
Foo {
listener: listener
}
}
}
fn main() {
let a = Foo::new();
}
```
# Original description
I a…
-
Not sure how to properly describe the bug, but this causes an ICE:
``` rust
#![feature(associated_types)]
struct SimulationInfo;
impl SimulationInfo {
fn add_state(&mut self, op: || -> ::State)…
-
Hi,
I found a very strange bug. The following code won't compile:
``` rust
type Entities = Box;
^~~~~~~~~~~~~~~~~~~
```
But if you comment the line I marked, it will compile …
-
### STR
Didn't have time to write a shorter snippet
``` rust
#![crate_type = "lib"]
#![feature(associated_types, lang_items, unboxed_closures)]
#![no_std]
use Option::{None, Some};
trait Iterator …
-
This 3-liner crashes rustc:
``` rust
struct CrashIt;
impl Iterator for CrashIt { }
fn main() { }
```
My original code did a lot more than that, but I tried to create the minimal repro case.
```
$ r…
-
420:2 error: internal compiler error: impl `VtableImpl(impl_def_id=DefId { krate: 0, node: 12304 }:ConnectionItems::Item,depth=0)`
```
...
```
note: the compiler une…
diwic updated
9 years ago
-
_Version of Rust_: rustc 0.13.0-nightly (c89417130 2015-01-02 21:56:13 +0000)
_Operating system_: Linux 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) i686 GNU/Linux
When the associated `T…
-
```
#![feature(associated_types)]
impl Foo for int {
type A = uint;
}
pub trait Foo {
type A;
}
pub fn main() {}
```
```
task 'rustc' panicked at 'No def'n found for DefId { krate: 0, node…