blob: 302ce550b8534b0d8989b80de2f77ba1c5d51c28 [file] [log] [blame]
use crate::tests::check_types;
#[test]
fn projection() {
check_types(
r#"
#![feature(trait_alias)]
pub trait A {
type Output;
}
pub trait B = A<Output = u32>;
pub fn a<T: B>(x: T::Output) {
x;
// ^ u32
}
"#,
);
}