Skip to content

Commit 25359c3

Browse files
committed
tests: test extraneous argument in #[pin_data]
Signed-off-by: Benno Lossin <[email protected]>
1 parent b855643 commit 25359c3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
use pin_init::*;
2+
3+
#[pin_data(PinnedDrop x)]
4+
struct Foo {}
5+
6+
fn main() {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected token
2+
--> tests/ui/compile-fail/pin_data/too_many_args.rs:3:23
3+
|
4+
3 | #[pin_data(PinnedDrop x)]
5+
| ^

0 commit comments

Comments
 (0)