-
I don't really know what could be causing this bug, but this code
``` rust
struct Test;
impl Add for Test {
fn add(&self, othr: &i32) -> i32 {
othr + 1
}
}
impl Add for Test {
f…
-
```
trait T : Iterator
{}
```
Compiling the above (admittedly ill-typed) file will cause
```
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.…
-
I got an internal compiler error when `cargo test`ing my code, and I was unfortunately unable to reproduce on a small sample. The code is [here on Github](https://github.com/honzasp/spiral/tree/bf84c7…
-
Currently, its not possible to write a custom attribute that applies to the crate, due to the way syntax extensions and the module system works.
- This does not work because inner attributes have to g…
-
Spawned off of #10846 and https://github.com/rust-lang/rust/pull/15061#issuecomment-46829811
Example code:
``` rust
fn main() {
fn test1(_x: Option< ) {}
fn test2(_x: Option< |y: &'static in…
-
### STR
``` rust
#![crate_type = "lib"]
#![feature(optin_builtin_traits)]
unsafe trait Trait {
fn method(&self) {
println!("Hello");
}
}
unsafe impl Trait for .. {}
fn call_method(…
-
It actually happens even if you take out the `type T` but I figured that would be too confusing of a testcase.
``` rust
#![feature(associated_types)]
pub trait Foo {
type T;
type S: Bar;
}
…
-
'rustc -v' output:
`rustc 0.12.0-pre (641b1980a 2014-09-09 04:26:18 +0000)`
os:
Mac OS X 10.9.4
'uname -a' output:
```
Darwin server.gideon001.private 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun …
-
Testcase:
``` rust
#![feature(associated_types)]
#![crate_type="lib"]
pub trait Test {
type Node;
type Iter: Iterator;
}
```
ICE:
```
error: internal compiler error: unexpected panic
note:…
bluss updated
9 years ago
-
Testcase:
``` rust
fn foo(a: T) -> T { a }
static BLOCK_FN_INFERRED: fn(uint) -> uint = foo;
fn main() {}
```
The intend here is to let rustc infer the right instantiation of `foo`, which would be…