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;
|
2019-02-07 14:59:59 +01:00
|
|
|
//~^ ERROR can't use generic parameters from outer function
|
2013-10-30 16:44:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|