My (short) code: 
https://go2goplay.golang.org/p/J4Ovyt-4xXN

The spec:
https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md

The errors:
prog.go2:7:30: interface contains type constraints (T, error)
prog.go2:19:32: interface contains type constraints (T, struct{})
prog.go2:10:13: interface contains type constraints (T, error)
prog.go2:15:13: interface contains type constraints (T, error)
prog.go2:22:13: interface contains type constraints (T, struct{})

What am I doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6941a289-94b0-4bb1-99d2-c685652e46a8n%40googlegroups.com.

Reply via email to