]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/issue-98432.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / generics / issue-98432.rs
1 struct Struct<T>(T);
2
3 impl<T> Struct<T> {
4     const CONST: fn() = || {
5         struct _Obligation where T:; //~ ERROR can't use generic parameters from outer function
6     };
7 }
8
9 fn main() {}