]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-2445.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-2445.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 // pretty-expanded FIXME #23616
6
7 struct c1<T> {
8 x: T,
9 }
10
11 impl<T> c1<T> {
12 pub fn f1(&self, _x: T) {}
13 }
14
15 fn c1<T>(x: T) -> c1<T> {
16 c1 {
17 x: x
18 }
19 }
20
21 impl<T> c1<T> {
22 pub fn f2(&self, _x: T) {}
23 }
24
25
26 pub fn main() {
27 c1::<isize>(3).f1(4);
28 c1::<isize>(3).f2(4);
29 }