Please see the following REPL transcript.
The problems seem to be:
1. the -feature flag is not set
2. after :replay the REPL seems to be broken; typed text no longer appears in the prompt, can't scroll through history with arrows, can't exit with Ctrl+D.
Welcome to Scala 2.12.0-RC1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_101).
Type in expressions for evaluation. Or try :help.
scala> trait Foo {
| def foo[C[A] <: Traversable[A]](c: C[String])
| }
warning: there was one feature warning; for details, enable `:setting -feature' or `:replay -feature'
defined trait Foo
scala> :setting -feature
scala> trait Foo {
| def foo[C[A] <: Traversable[A]](c: C[String])
| }
warning: there was one feature warning; for details, enable `:setting -feature' or `:replay -feature'
defined trait Foo
scala> :replay -feature
Replaying: trait Foo {
def foo[C[A] <: Traversable[A]](c: C[String])
}
warning: there was one feature warning; for details, enable `:setting -feature' or `:replay -feature'
defined trait Foo
Replaying: trait Foo {
def foo[C[A] <: Traversable[A]](c: C[String])
}
warning: there was one feature warning; for details, enable `:setting -feature' or `:replay -feature'
defined trait Foo
scala>
scala> <console>:12: error: not found: value foo
foo
^
scala> <console>:1: error: illegal character '\u0004'
\u0004\u0004\u0004\u0004\u0004
^
<console>:1: error: illegal character '\u0004'
\u0004\u0004\u0004\u0004\u0004
^
<console>:1: error: illegal character '\u0004'
\u0004\u0004\u0004\u0004\u0004
^
<console>:1: error: illegal character '\u0004'
\u0004\u0004\u0004\u0004\u0004
^
<console>:1: error: illegal character '\u0004'
\u0004\u0004\u0004\u0004\u0004
^
scala>