rust/tests/ui/issues/issue-5997-outer-generic-parameter/issue-5997.rs
2024-02-16 20:02:50 +00:00

16 lines
168 B
Rust

//@ run-pass
#![allow(dead_code)]
fn f<T>() -> bool {
enum E<T> { V(T) }
struct S<T>(T);
true
}
fn main() {
let b = f::<isize>();
assert!(b);
}