blob: bdba4c7ff16a10344f5465b87147da0cb55de27b [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() {
}