]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/ufcs-type-params.rs
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[rust.git] / src / test / ui / typeck / ufcs-type-params.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 trait Foo<T> {
5     fn get(&self) -> T;
6 }
7
8 impl Foo<i32> for i32 {
9     fn get(&self) -> i32 { *self }
10 }
11
12 fn main() {
13     let x: i32 = 1;
14     Foo::<i32>::get(&x);
15 }