// RUN: not %target-swift-frontend %s -parse

// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing

struct A {
func f() {
let h: (A, A) -> A = { c, x in x
struct d<f : e, g: e where g.h == f.h> {
class A {
