This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #632 from henryboisdequin/add-some-ice
add some ICEs
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |