// RUN: %target-swift-frontend %s -emit-silgen
import StdlibUnittest

func testCollectionIndexIsMinimalForwardIndex<
  C : CollectionType
  where
  C.Index == MinimalForwardIndex
>(c: C) {}

let c = MinimalForwardCollection([ OpaqueValue(1) ])
let i: MinimalForwardIndex = c.startIndex
dump(i)
testCollectionIndexIsMinimalForwardIndex(c)

// RUN: not %target-swift-frontend %s -emit-silgen
import StdlibUnittest

func testCollectionIndexIsMinimalForwardIndex<
  C : CollectionType
  where
  C.Index == MinimalForwardIndex
>(c: C) {}

let c = MinimalForwardCollection([ OpaqueValue(1) ])
let i: MinimalForwardIndex = c.startIndex
dump(i)
testCollectionIndexIsMinimalForwardIndex(c)

Fix RUN line; this isn't passing
Fix RUN line; this isn't passing

Swift SVN r29871
