regression test.

This commit is contained in:
Felix S. Klock II 2019-07-08 17:04:02 +02:00
parent 81cc482265
commit 4c58b29285
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,5 @@
// edition:2018
#![crate_type="lib"]
#![crate_name="xcrate_issue_61711_b"]
pub struct Struct;
pub use crate as alias;

View file

@ -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() { }