]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/ufcs-type-params.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[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 }