Skip to content

Commit 094b085

Browse files
committed
ensure pattern changes apply to ignored defaults
1 parent 322ff07 commit 094b085

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/compile-pass/self_by_value_mut.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ struct Data {
55
id: usize,
66
}
77

8-
#[auto_impl(Fn)]
8+
#[auto_impl(&, Box)]
99
trait Foo {
10+
#[auto_impl(keep_default_for(&))]
1011
fn foo(&self, ref mut data: Data) {
1112
data.id += 1;
1213
}

0 commit comments

Comments
 (0)