]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inner-static-type-parameter.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 }