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

Commit 0b32fad

Browse files
Add some ICEs
1 parent 08dfe89 commit 0b32fad

File tree

10 files changed

+93
-0
lines changed

10 files changed

+93
-0
lines changed

ices/108952.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![allow(incomplete_features)]
2+
#![feature(adt_const_params)]
3+
4+
struct LifetimeGeneric<'a>(&'a ());
5+
6+
struct UwU<'b, const T: LifetimeGeneric>(&'b ());
7+
8+
fn main() {}

ices/108957.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![feature(inherent_associated_types)]
2+
#![allow(incomplete_features)]
3+
4+
struct Choose<T>(T);
5+
6+
impl<T: Copy> Choose<T> {
7+
type Result = Vec<T>;
8+
}
9+
10+
fn main() {
11+
let _: Choose<&str>::Result = vec!["..."];
12+
}

ices/109059.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#![allow(incomplete_features)]
2+
#![feature(adt_const_params)]
3+
#![allow(dead_code)]
4+
5+
#[derive(PartialEq, Eq)]
6+
struct S;
7+
8+
trait T<const C: &'static S> {}
9+
10+
fn foo<const C: &'static S>(t: impl T<C>) -> impl T<C> {
11+
t
12+
}
13+
14+
fn main() {}

ices/109072.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
trait Lt<'_> {
2+
type T = ();
3+
}
4+
impl<'f> Lt<'a> for () {
5+
type T = ();
6+
}
7+
8+
fn main() {
9+
let v: <() as Lt<'_>>::T = ();
10+
}

ices/109141.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![feature(generic_const_exprs)]
2+
pub fn main() {}
3+
4+
impl EntriesBuffer {
5+
fn a(&self) -> impl Iterator {
6+
self.0.iter_mut()
7+
}
8+
}
9+
10+
struct EntriesBuffer(Box<[[u8; HashesEntryLEN]; 5]>);
11+
12+
fn main() {}

ices/109144.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![crate_type = "lib"]
2+
#[link(kind = "static", modifiers = "+whole-archive,+bundle")]
3+
extern "C" {}
4+
5+
fn main() {}

ices/109147.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
use rustfmt::skip::Cell;
2+
3+
fn f(f: (Cell)) -> i32 {
4+
f
5+
}
6+
7+
fn main() {}

ices/109148.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#[std( = )]
2+
extern crate blah as std;
3+
use std::arch;
4+
5+
fn main() {}

ices/109152.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#![crate_type = "lib"]
2+
fn _y() {
3+
vec![42].iter().map(drop);
4+
}
5+
6+
fn main() {}

ices/109153.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use foo::*;
2+
3+
mod foo {
4+
pub mod bar {
5+
pub mod bar {
6+
pub mod bar {}
7+
}
8+
}
9+
}
10+
11+
use bar::bar;
12+
use bar::*;
13+
14+
fn main() {}

0 commit comments

Comments
 (0)