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

Commit

Permalink
Merge pull request #632 from henryboisdequin/add-some-ice
Browse files Browse the repository at this point in the history
add some ICEs
  • Loading branch information
Alexendoo authored Feb 5, 2021
2 parents d0f08ab + 2073016 commit 12bb105
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ices/80664.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

cat > out.rs << EOF
mod inner {
pub struct Public;
}
pub use inner::Public as Reexported;
EOF

rustdoc out.rs --output-format json
6 changes: 6 additions & 0 deletions ices/81708.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
static T: () = {
let test_arr: [String; 1];
test_arr[0] = String::new();
};

fn main() {}
18 changes: 18 additions & 0 deletions ices/81712.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#![feature(generic_associated_types)]

// The cyclic dependency between trait A and B compiles as expected
trait A {
type BType: B<AType = Self>;
}

trait B {
type AType: A<BType = Self>;
}

// rustc crashes on the generic cyclic dependency between traits C and D
trait C {
type DType<T>: D<T, CType = Self>;
}
trait D<T> {
type CType: C<DType = Self>;
}

0 comments on commit 12bb105

Please sign in to comment.