]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-2445-b.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / issues / issue-2445-b.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
b7449926
XL
3#![allow(non_camel_case_types)]
4
c34b1796
AL
5// pretty-expanded FIXME #23616
6
223e47cc
LB
7struct c1<T> {
8 x: T,
9}
10
1a4d82fc 11impl<T> c1<T> {
c34b1796 12 pub fn f1(&self, _x: isize) {
223e47cc
LB
13 }
14}
15
1a4d82fc 16fn c1<T>(x: T) -> c1<T> {
223e47cc
LB
17 c1 {
18 x: x
19 }
20}
21
1a4d82fc 22impl<T> c1<T> {
c34b1796 23 pub fn f2(&self, _x: isize) {
223e47cc
LB
24 }
25}
26
27
28pub fn main() {
c34b1796
AL
29 c1::<isize>(3).f1(4);
30 c1::<isize>(3).f2(4);
223e47cc 31}