]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-unsized.rs
Rollup merge of #105567 - TimNN:kcfi16, r=nikic
[rust.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 }