1
Fork 0
rust/tests/ui/issues/issue-2445.rs
许杰友 Jieyou Xu (Joe) 95ff642797 tests: remove //@ pretty-expanded usages
Done with

```bash
sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs
```

and

```
sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs
```
2024-11-26 02:50:48 +08:00

28 lines
324 B
Rust

//@ run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
struct c1<T> {
x: T,
}
impl<T> c1<T> {
pub fn f1(&self, _x: T) {}
}
fn c1<T>(x: T) -> c1<T> {
c1 {
x: x
}
}
impl<T> c1<T> {
pub fn f2(&self, _x: T) {}
}
pub fn main() {
c1::<isize>(3).f1(4);
c1::<isize>(3).f2(4);
}