Skip to content

Commit

Permalink
tweak test case error message for #42023
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Oct 6, 2017
1 parent 08071c2 commit 2eabf4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/compile-fail/issue-43023.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
struct S;

impl S {
#[derive(Debug)] //~ ERROR `derive` may only be applied to structs, enums and unions
#[derive(Debug)] //~ ERROR `derive` may only be applied to structs and enums
fn f() {
file!();
}
}

trait Tr1 {
#[derive(Debug)] //~ ERROR `derive` may only be applied to structs, enums and unions
#[derive(Debug)] //~ ERROR `derive` may only be applied to structs and enums
fn f();
}

trait Tr2 {
#[derive(Debug)] //~ ERROR `derive` may only be applied to structs, enums and unions
#[derive(Debug)] //~ ERROR `derive` may only be applied to structs and enums
type F;
}

0 comments on commit 2eabf4f

Please sign in to comment.