// check-pass // Make sure that we only consider *Self* supertrait predicates // in the `unused_must_use` lint. #![feature(trait_alias)] #![deny(unused_must_use)] trait Foo = Sized where T: Iterator; fn test() -> impl Foo {} fn main() { test::>(); }