Skip to content

Commit

Permalink
regression test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Jul 8, 2019
1 parent 81cc482 commit 4c58b29
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/ui/issues/auxiliary/xcrate-issue-61711-b.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// edition:2018
#![crate_type="lib"]
#![crate_name="xcrate_issue_61711_b"]
pub struct Struct;
pub use crate as alias;
11 changes: 11 additions & 0 deletions src/test/ui/issues/issue-61711-once-caused-rustc-inf-loop.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Issue 61711: A crate pub re-exporting `crate` was causing an
// infinite loop.

// edition:2018
// aux-build:xcrate-issue-61711-b.rs
// compile-flags:--extern xcrate_issue_61711_b

// run-pass

fn f<F: Fn(xcrate_issue_61711_b::Struct)>(_: F) { }
fn main() { }

0 comments on commit 4c58b29

Please sign in to comment.