rust/src/test/ui/issues/issue-5997-struct.rs
2018-12-25 21:08:33 -07:00

11 lines
162 B
Rust

fn f<T>() -> bool {
struct S(T); //~ ERROR can't use type parameters from outer function
true
}
fn main() {
let b = f::<isize>();
assert!(b);
}