]> git.lizzy.rs Git - rust.git/blob - tests/ui/inner-static-type-parameter.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / inner-static-type-parameter.rs
1 // see #9186
2
3 enum Bar<T> { What } //~ ERROR parameter `T` is never used
4
5 fn foo<T>() {
6     static a: Bar<T> = Bar::What;
7 //~^ ERROR can't use generic parameters from outer function
8 }
9
10 fn main() {
11 }