rust/src/test/compile-fail/param-by-value.rs
2011-10-07 10:41:40 +02:00

5 lines
97 B
Rust

// error-pattern:can not pass a dynamically-sized type by value
fn f<T>(+_x: T) {}
fn main() {}