1
Fork 0

librustc: Allow trait bounds on structures and enumerations, and check

them during kind checking.

This implements RFC #11.

Closes #15759.
This commit is contained in:
Patrick Walton 2014-08-11 17:12:01 -07:00
parent cb9c1e0e70
commit 086a5ca7d2
26 changed files with 622 additions and 43 deletions

View file

@ -16,9 +16,11 @@ extern crate rand;
struct Error;
#[deriving(Zero)]
#[deriving(Zero)] //~ ERROR failed to find an implementation
struct Struct(
Error //~ ERROR
//~^ ERROR failed to find an implementation
//~^^ ERROR type `Error` does not implement any method in scope
);
fn main() {}