summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-types-unsized.fixed
blob: 328c8f944e2e0568b7ecaa42975524165a281c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-rustfix
#![allow(dead_code, unused_variables)]

trait Get {
    type Value: ?Sized;
    fn get(&self) -> <Self as Get>::Value;
}

fn foo<T:Get>(t: T) where <T as Get>::Value: Sized {
    let x = t.get(); //~ ERROR the size for values of type
}

fn main() {
}