]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/associated-types-unsized.rs
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-unsized.rs
1 // run-rustfix
2 #![allow(dead_code, unused_variables)]
3
4 trait Get {
5 type Value: ?Sized;
6 fn get(&self) -> <Self as Get>::Value;
7 }
8
9 fn foo<T:Get>(t: T) {
10 let x = t.get(); //~ ERROR the size for values of type
11 }
12
13 fn main() {
14 }