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

Commit c8a67bb

Browse files
authored
Merge pull request #1167 from matthiaskrgr/ices_mar_11
add 5 ices
2 parents 465ec8d + 9368df6 commit c8a67bb

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

ices/94680.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
fn main() {
2+
println!("{:?}", {
3+
type T = ();
4+
5+
pub fn cloneit (it: &'_ mut T) -> (&'_ mut T, &'_ mut T)
6+
where
7+
for<'any> &'any mut T : Clone, {
8+
(it.clone(), it)
9+
}
10+
}); }

ices/94822-1.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn a() -> bool {
2+
for i in 0..80*25 {
3+
|| {};
4+
}
5+
#[lang = "sized"]
6+
trait A {}
7+
}

ices/94822-2.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![feature(lang_items)]
2+
3+
#[lang = "sized"]
4+
trait A {}
5+
6+
fn a() {
7+
let _ = 0..80*25;
8+
}

ices/94835.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#![feature(allocator_api)]
2+
use std::alloc::Global;
3+
4+
fn main() {
5+
// f(()) // no ICE
6+
f(32); // ICE
7+
}
8+
9+
pub fn f<T>(val: T) {
10+
*Box::new_in(val, &Global);
11+
}

ices/94846.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![feature(generic_const_exprs)]
2+
3+
struct S<const C:() = {}>() where S<{}>:;
4+
5+
pub fn main() {}

0 commit comments

Comments
 (0)