librustc: Disallow trait bounds in types, enumerations, and structure definitions. r=tjc
This commit is contained in:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user