Skip to content

Commit

Permalink
Add test case for rust-lang#65863
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Jul 15, 2020
1 parent a93bcc9 commit d010443
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/rustdoc/return-impl-trait.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#![feature(type_alias_impl_trait)]

pub trait Backend {}

impl Backend for () {}

pub struct Module<T>(T);

pub type BackendImpl = impl Backend;

// @has return_impl_trait/fn.make_module.html
/// Documentation
pub fn make_module() -> Module<BackendImpl> {
Module(())
}

0 comments on commit d010443

Please sign in to comment.