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