mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
10 lines
225 B
Rust
10 lines
225 B
Rust
fn hd<U>(v: Vec<U> ) -> U {
|
|
fn hd1(w: [U]) -> U { return w[0]; }
|
|
//~^ ERROR can't use generic parameters from outer item
|
|
//~| ERROR can't use generic parameters from outer item
|
|
|
|
return hd1(v);
|
|
}
|
|
|
|
fn main() {}
|