aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2723-1.rs
blob: 261956de42e49e77b41d3ff7da753124367edc74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[lang = "sized"]
pub trait Sized {}

struct S<T>(T);

impl S<i32> {
    fn f<S>(t: S) -> S {
        t
    }
}

pub fn main() {
    S::<i32>::f::<i32>(0);
}