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

Add or revive ICEs #293

Merged
merged 1 commit into from
Feb 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() {}