mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-01 13:34:38 +00:00
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`
12 lines
202 B
Rust
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!();
|
|
}
|
|
}
|