mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
15 lines
236 B
Rust
15 lines
236 B
Rust
//@ 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() {
|
|
}
|