blob: b7f6721ec4f36fdfd5ed7d08175b5921f6654f28 [file] [log] [blame]
// run-pass
trait Foo {
type T;
}
impl Foo for i32 {
type T = isize;
}
fn main() {
let x: <i32 as Foo>::T = 22;
let y: isize = 44;
assert_eq!(x * 2, y);
}