forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#63937 - Nashenas88:rustdoc_57180, r=Guillaume…
…Gomez Fix ICE in rustdoc when merging generic and where bounds of an Fn with an output Fixes rust-lang#57180
- Loading branch information
Showing
3 changed files
with
31 additions
and
17 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
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,16 @@ | ||
// compile-flags: -Cmetadata=aux | ||
|
||
pub trait Trait { | ||
} | ||
|
||
pub struct Struct<F> | ||
{ | ||
_p: ::std::marker::PhantomData<F>, | ||
} | ||
|
||
impl<F: Fn() -> u32> | ||
Trait for Struct<F> | ||
where | ||
F: Fn() -> u32, | ||
{ | ||
} |
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,7 @@ | ||
// aux-build:issue-57180.rs | ||
|
||
extern crate issue_57180; | ||
use issue_57180::Trait; | ||
|
||
fn main() { | ||
} |