Skip to content

Commit 2eabf4f

Browse files
committed
tweak test case error message for #42023
1 parent 08071c2 commit 2eabf4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/compile-fail/issue-43023.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
struct S;
1212

1313
impl S {
14-
#[derive(Debug)] //~ ERROR `derive` may only be applied to structs, enums and unions
14+
#[derive(Debug)] //~ ERROR `derive` may only be applied to structs and enums
1515
fn f() {
1616
file!();
1717
}
1818
}
1919

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

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

0 commit comments

Comments
 (0)