]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-80062.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / const-generics / issues / issue-80062.rs
1 // Regression test for issue #80062 (fixed by `min_const_generics`)
2
3 fn sof<T>() -> T { unimplemented!() }
4
5 fn test<T>() {
6 let _: [u8; sof::<T>()];
7 //~^ ERROR generic parameters may not be used in const operations
8 }
9
10 fn main() {}