rust/tests/ui/generics/issue-98432.rs

10 lines
186 B
Rust
Raw Normal View History

struct Struct<T>(T);
impl<T> Struct<T> {
const CONST: fn() = || {
2023-09-10 16:06:14 -05:00
struct _Obligation where T:; //~ ERROR can't use generic parameters from outer item
};
}
fn main() {}