-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use QueryNormalizer to normalize in rustdoc
- Loading branch information
1 parent
f382c27
commit 2964f15
Showing
2 changed files
with
32 additions
and
20 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,21 @@ | ||
// compile-flags: -Znormalize-docs | ||
|
||
#![feature(type_alias_impl_trait)] | ||
|
||
trait Allocator { | ||
type Buffer; | ||
} | ||
|
||
struct DefaultAllocator; | ||
|
||
impl<T> Allocator for DefaultAllocator { | ||
type Buffer = (); | ||
} | ||
|
||
type A = impl Fn(<DefaultAllocator as Allocator>::Buffer); | ||
|
||
fn foo() -> A { | ||
|_| () | ||
} | ||
|
||
fn main() {} |