rust/tests/ui/issues/issue-5997-enum.rs
León Orell Valerian Liehr b00e408e61
Generalize E0401
2023-09-10 23:06:14 +02:00

11 lines
168 B
Rust

fn f<Z>() -> bool {
enum E { V(Z) }
//~^ ERROR can't use generic parameters from outer item
true
}
fn main() {
let b = f::<isize>();
assert!(b);
}