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

struct S<T>(T);

impl S<u8> {
    fn foo<U>() {}
}

fn main() {
    S::foo::<i32>();
}