]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inner-static-type-parameter.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[rust.git] / src / test / 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 }