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

Commit

Permalink
Add const_generic feature gate to some ICEs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexendoo committed Dec 28, 2020
1 parent 7389dd2 commit 48b35b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ices/73375.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![feature(const_generics)]

fn bug<'a>() {
[(); (|_: &'a u8| (), 0).1];
}
2 changes: 2 additions & 0 deletions ices/74713.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![feature(const_generics)]

fn bug<'a>()
where
[(); {
Expand Down
2 changes: 2 additions & 0 deletions ices/77357.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![feature(const_generics)]

trait MyTrait<T> {}

fn bug<'a, T>() -> &'static dyn MyTrait<[(); { |x: &'a u32| { x }; 4 }]> {
Expand Down

0 comments on commit 48b35b2

Please sign in to comment.