Skip to content

Commit 7e24cfa

Browse files
committed
tests: add underscore
Signed-off-by: Benno Lossin <[email protected]>
1 parent e7aa936 commit 7e24cfa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/underscore.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
use pin_init::{init, Init};
2+
3+
pub struct Foo {
4+
x: u64,
5+
y: u64,
6+
}
7+
8+
impl Foo {
9+
pub fn new() -> impl Init<Self> {
10+
init!(Self {
11+
_: {
12+
let z = 42;
13+
},
14+
x: z,
15+
y: z,
16+
})
17+
}
18+
}

0 commit comments

Comments
 (0)