-
Couldn't find another issue for this.
```
use self::MyEnum::*;
enum MyEnum {
Result,
NoResult
}
fn new() -> Result {
unimplemented!()
}
fn main() {
let _ = new();
}
```
The error …
Ryman updated
9 years ago
-
This test case:
```
fn dummy ReStatic / ReFree(DestructionScopeData { node_id: 4 }, BrNamed(DefId { krate: 0, node: 10 }, 'a))
```
-
The following code causes an ICE using the latest nightly.
```
#![feature(associated_consts)]
pub trait Test {
const LENGTH: usize;
fn method(array: [i32; Self::LENGTH]) { }
}
fn mai…
ghost updated
9 years ago
-
I was developing a new module for a small project:
``` rust
//tests/command_parser_test.rs
#[path="../src/command_parser.rs"]
mod command_parser;
#[test]
fn parses_non_sudo_without_args() {
let…
-
While trying to create a generic vector type, I stumbled upon the following ICE:
```
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we…
-
### code
``` rust
#![feature(associated_consts)]
trait Trait {
const SIZE: usize;
}
pub fn cause_compiler_to_panic() -> [u8; T::SIZE] {
unimplemented!()
}
```
### compiler output
```
$ RU…
-
This compiles successfully, but it should error. Self is not Clone, and Noexist doesn't exist.
``` rust
trait Visitor {
type Iter: PartialEq;
}
```
This gives an ICE:
``` rust
trait Visitor {
…
bluss updated
9 years ago
-
In the playpen (Mode: Debug, Channel: Nightly)
I was playing with associated constants when this code made the compiler panic:
``` rust
#![feature(associated_consts)]
use ::std::marker::PhantomData…
-
Adding a sized constraint to a trait caused an internal compile error.
I tried this code:
```
trait A: Sized {
type N:One;
fn new(x:Self::N) -> Self;
fn x() -> Self {
Self::new…
-
## STR
``` Rust
fn foo(f: for fn(&'a ()) -> &'a &'b ()) {
bar(f);
}
fn bar(f: for fn(&'b ()) -> &'a &'b ()) {
}
fn main() {}
```
## Actual Results
```
:2:9: 2:10 error: mismatched types:
expe…