blob: 7996686522e9bf3ccfb0b31f8574f9b74c61d081 [file]
#![crate_name = "foo"]
#![feature(doc_notable_trait)]
#[doc(notable_trait)]
pub trait Notable {}
pub struct Wrapper<T: ?Sized>(Box<T>);
pub struct Foo;
pub type Alias = Foo;
impl Notable for Wrapper<dyn std::error::Error> {}
impl Notable for Wrapper<u8> {}
//@ has 'foo/fn.returns_alias.html'
pub fn returns_alias() -> Wrapper<Alias> {
Wrapper(Box::new(Foo))
}