rust/src/test/ui/issues/issue-5997-struct.rs

11 lines
162 B
Rust
Raw Normal View History

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