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

Commit 46d8094

Browse files
authored
Merge pull request #293 from JohnTitor/re-ice
Add or revive ICEs
2 parents a6d93c2 + 70bada9 commit 46d8094

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

fixed/62879.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

ices/62879.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#![feature(const_generics)]
2+
3+
fn foo<const N: usize, const A: [u8; N]>() {}
4+
5+
fn bar() {
6+
foo::<1, {[1]}>();
7+
}
8+
9+
fn main() {}
File renamed without changes.

ices/69204.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
trait IAmATrait {
2+
type Item;
3+
fn function(&self) -> Self::Item;
4+
}
5+
6+
struct IAmAnObject(usize);
7+
8+
impl IAmATrait for IAmAnObject {
9+
type Item = _;
10+
fn function(&self) -> Self::Item {
11+
self.0
12+
}
13+
}
14+
15+
fn main() {}

0 commit comments

Comments
 (0)