about summary refs log tree commit diff
path: root/tests/ui/typeck/ufcs-type-params.rs
blob: 5a6db4620fc18a8c185845eeefb7d9696823bfff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ run-pass

trait Foo<T> {
    fn get(&self) -> T;
}

impl Foo<i32> for i32 {
    fn get(&self) -> i32 { *self }
}

fn main() {
    let x: i32 = 1;
    Foo::<i32>::get(&x);
}