rust/tests/ui/issues/issue-5997.rs
2023-01-11 09:32:08 +00:00

16 lines
167 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);
}