]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/issue-98432.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[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() {}