blob: 5cdb4a6133c6bf918fbfac6ad8ac7e43d3162d52 [file] [log] [blame]
//@ 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) {
let x = t.get(); //~ ERROR the size for values of type
}
fn main() {
}