]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inner-static-type-parameter.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[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 }