Skip to content

Commit 4c58b29

Browse files
committed
regression test.
1 parent 81cc482 commit 4c58b29

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// edition:2018
2+
#![crate_type="lib"]
3+
#![crate_name="xcrate_issue_61711_b"]
4+
pub struct Struct;
5+
pub use crate as alias;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Issue 61711: A crate pub re-exporting `crate` was causing an
2+
// infinite loop.
3+
4+
// edition:2018
5+
// aux-build:xcrate-issue-61711-b.rs
6+
// compile-flags:--extern xcrate_issue_61711_b
7+
8+
// run-pass
9+
10+
fn f<F: Fn(xcrate_issue_61711_b::Struct)>(_: F) { }
11+
fn main() { }

0 commit comments

Comments
 (0)