]> git.lizzy.rs Git - rust.git/blob - src/test/ui/ufcs-type-params.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / 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 }