rust/tests/ui/inner-static-type-parameter.rs
León Orell Valerian Liehr b00e408e61
Generalize E0401
2023-09-10 23:06:14 +02:00

11 lines
195 B
Rust

// see #9186
enum Bar<T> { What } //~ ERROR parameter `T` is never used
fn foo<T>() {
static a: Bar<T> = Bar::What;
//~^ ERROR can't use generic parameters from outer item
}
fn main() {
}