Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
}
"#,
    );
}