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

pub trait T<X> {
    const D: i32 = {
        // { dg-error "mismatched types, expected .i32. but got .()." "" { target *-*-* } .-1 }
        const C: X;
    };
}