librustc: Disallow trait bounds in types, enumerations, and structure definitions. r=tjc

This commit is contained in:
Patrick Walton
2013-01-28 10:46:43 -08:00
parent eb4d39e1fe
commit 6ce74460e6
44 changed files with 424 additions and 107 deletions

View File

@@ -27,7 +27,7 @@ impl cat_type : cmp::Eq {
// for any int value that's less than the meows field
// ok: T should be in scope when resolving the trait ref for map
struct cat<T: Copy> {
struct cat<T> {
// Yes, you can have negative meows
priv mut meows : int,