summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsized-locals/issue-50940.rs
blob: 7ba809b7e83e3a3117f3fca835330481fb1c30cf (plain)
1
2
3
4
5
fn main() {
    struct A<X: ?Sized>(X);
    A as fn(str) -> A<str>;
    //~^ERROR the size for values of type `str` cannot be known at compilation time
}