2024-07-07 09:02:30 -05:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
#![feature(trait_alias)]
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set StrLike = "$.index[*][?(@.name=='StrLike')].id"
|
|
|
|
//@ is "$.index[*][?(@.name=='StrLike')].visibility" \"public\"
|
|
|
|
//@ has "$.index[*][?(@.name=='StrLike')].inner.trait_alias"
|
|
|
|
//@ is "$.index[*][?(@.name=='StrLike')].span.filename" $FILE
|
2024-07-07 09:02:30 -05:00
|
|
|
pub trait StrLike = AsRef<str>;
|
|
|
|
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='f')].inner.function.sig.output.impl_trait[0].trait_bound.trait.id" $StrLike
|
2024-07-07 09:02:30 -05:00
|
|
|
pub fn f() -> impl StrLike {
|
|
|
|
"heya"
|
|
|
|
}
|
|
|
|
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ !is "$.index[*][?(@.name=='g')].inner.function.sig.output.impl_trait[0].trait_bound.trait.id" $StrLike
|
2024-07-07 09:02:30 -05:00
|
|
|
pub fn g() -> impl AsRef<str> {
|
|
|
|
"heya"
|
|
|
|
}
|