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:
parent
cb9c1e0e70
commit
086a5ca7d2
26 changed files with 622 additions and 43 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue