2013-10-30 16:44:55 -07:00
|
|
|
// see #9186
|
|
|
|
|
2015-12-11 20:59:11 +13:00
|
|
|
enum Bar<T> { What } //~ ERROR parameter `T` is never used
|
2013-10-30 16:44:55 -07:00
|
|
|
|
|
|
|
fn foo<T>() {
|
2014-11-06 00:05:53 -08:00
|
|
|
static a: Bar<T> = Bar::What;
|
2023-09-10 23:06:14 +02:00
|
|
|
//~^ ERROR can't use generic parameters from outer item
|
2013-10-30 16:44:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|