rust/src/test/ui/issues/issue-3021-c.rs

10 lines
209 B
Rust
Raw Normal View History

fn siphash<T>() {
trait U {
2018-02-07 09:26:35 -06:00
fn g(&self, x: T) -> T; //~ ERROR can't use type parameters from outer function
//~^ ERROR can't use type parameters from outer function
}
}
fn main() {}