Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #293 from JohnTitor/re-ice
Browse files Browse the repository at this point in the history
Add or revive ICEs
  • Loading branch information
Alexendoo authored Feb 16, 2020
2 parents a6d93c2 + 70bada9 commit 46d8094
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
11 changes: 0 additions & 11 deletions fixed/62879.rs

This file was deleted.

9 changes: 9 additions & 0 deletions ices/62879.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![feature(const_generics)]

fn foo<const N: usize, const A: [u8; N]>() {}

fn bar() {
foo::<1, {[1]}>();
}

fn main() {}
File renamed without changes.
15 changes: 15 additions & 0 deletions ices/69204.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
trait IAmATrait {
type Item;
fn function(&self) -> Self::Item;
}

struct IAmAnObject(usize);

impl IAmATrait for IAmAnObject {
type Item = _;
fn function(&self) -> Self::Item {
self.0
}
}

fn main() {}

0 comments on commit 46d8094

Please sign in to comment.