#![feature(type_alias_impl_trait)] use std::fmt::Debug; type Foo = impl Debug; pub trait Yay { } impl Yay for u32 { } fn foo() { is_yay::(); //~ ERROR: the trait bound `Foo: Yay` is not satisfied } fn is_yay() { } fn main() {}