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

Commit 12bb105

Browse files
authored
Merge pull request #632 from henryboisdequin/add-some-ice
add some ICEs
2 parents d0f08ab + 2073016 commit 12bb105

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

ices/80664.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
cat > out.rs << EOF
4+
mod inner {
5+
pub struct Public;
6+
}
7+
8+
pub use inner::Public as Reexported;
9+
EOF
10+
11+
rustdoc out.rs --output-format json

ices/81708.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
static T: () = {
2+
let test_arr: [String; 1];
3+
test_arr[0] = String::new();
4+
};
5+
6+
fn main() {}

ices/81712.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#![feature(generic_associated_types)]
2+
3+
// The cyclic dependency between trait A and B compiles as expected
4+
trait A {
5+
type BType: B<AType = Self>;
6+
}
7+
8+
trait B {
9+
type AType: A<BType = Self>;
10+
}
11+
12+
// rustc crashes on the generic cyclic dependency between traits C and D
13+
trait C {
14+
type DType<T>: D<T, CType = Self>;
15+
}
16+
trait D<T> {
17+
type CType: C<DType = Self>;
18+
}

0 commit comments

Comments
 (0)