rust/src/test/rustdoc/impl-trait-alias.rs
Noah Lev 13d53273f8 Rename @hastext to @hasraw (same for matches)
I think `@hasraw` is slightly clearer than `@hastext` since it is
actually matching against the raw HTML, not the text nodes.
2022-08-13 00:37:13 -04:00

14 lines
266 B
Rust

#![feature(type_alias_impl_trait)]
trait MyTrait {}
impl MyTrait for i32 {}
// @hasraw impl_trait_alias/type.Foo.html 'Foo'
/// debug type
pub type Foo = impl MyTrait;
// @hasraw impl_trait_alias/fn.foo.html 'foo'
/// debug function
pub fn foo() -> Foo {
1
}