mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
11 lines
195 B
Rust
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() {
|
|
}
|