rust/tests/rustdoc-js/impl-trait-inlining.rs
Michael Howell f068d8b809 rustdoc-search: show impl Trait inline when unhighlighted
While normal generics can be skipped in this case, no-names need
something to show here.

Before: `TyCtxt, , Symbol -> bool`

After: `TyCtxt, Into<DefId>, Symbol -> bool`
2024-12-13 10:47:20 -07:00

12 lines
202 B
Rust

#![crate_name="foo"]
pub struct TyCtxt;
pub struct DefId;
pub struct Symbol;
impl TyCtxt {
pub fn has_attr(self, _did: impl Into<DefId>, _attr: Symbol) -> bool {
unimplemented!();
}
}