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